Using Regular Expression for filtering domains/sub domains


First of all, im sorry if this is the wrong section to post this topic.

I would like to know if it is possible to allow connections to destinations such as '' using regex

Lets say i want to allow access to all connections to sub domains that finish with

So,, etc
And there is a LOT of those sub domains so it is not possible to include one by one (More than 100)

Its has to be something like 'Allow all connections that starts with *' where * means anything.

I already know that i can filter everything that has using regex on Web Filtering, (Like ^https?://([A-Za-z0-9.-]*\.)?google\.com/)
but my question is if i can do the same, or similar, in Network Protection > Firewall

I am also sorry if i did not make myself clear or you did not understand what is my question
I know how to speak english but since this is a very technical question i am not sure if i expressed myself well enough.

Im still learning english

Thank you for your time reading this,