How to blocking subdomains using wildcard/regex?

Additional information

I don’t know/other

What is the issue you’re encountering

How to block subdomains using wildcard? Like sentry.* - meaning any subdomains that starts with sentry will be block in dns policies (sentry.google.com, sentry.yahoo.com) you get the idea. And how to do it in regex? I want to input multiple entries. Thanks! P.S English is not my first language.

I am also facing these kinds of the issues in search console on this website https://faisalkazmi.com/