Use regular expression in redirect uri

Is it possible to extend keycloak to accept regular expressions for the redirect Uri. The reason. We have a lot of environments where only the hostname is different. Example:

I looked in the redirectutils library where this logic hides and the only thing I could find is a * or a /* in the end as part the redirect uri. For my environments I need to specify up to 30 different URLs per application.

I like to change the URL to something like “environment\” as an example of a regex.

Idea’s how to make this more flexible/workable?