How can I prevent Google from indexing certain pages on my site?

Hello,

I want to stop the google indexing pages like collection page number, example: “/collections/cats?page=5”.

And I also found some links that indexed on google ( example: https://domain.com/products/product-handle?pr_prod_strat=collection_fallback&pr_rec_pid=7552345243890&pr_ref_pid=6587996602564&pr_seq=uniform ) but can’t understand what is the reason and also don’t understand is it helpful or harmful for my store. I cordially looking for your opinion about the whole matter and the solution.

What do you mean?