Google Search Console -> Performance -> New -> Query -> Filter -> Custom (regex)

SEO Hidden Gem: Google Search Console, Query, Filter, Custom (regex / regular expression)