I want to noindex subpages on my collection page and other pages

How do I set the unnecessary url extensions of the filter feature on the subpages of my collection pages and product pages as noindex.
Example: When I click on the filter feature on my product page, it becomes an extension in the form of /collections/all?filter.v.option. and this page is indexed in google, in the same way, sub-pages such as /collections/all?page=2 are indexable, how can I solve this, please help!

/collections/all?filter.v.option.
/?filter.p.product_type=
/collections/all?page=2 I don’t want pages like this to be indexed

Have you found an answer to this question? Currently working on the same thing.

Trying to find a solution to this too but it seems like a very complicated problem, frustrating.