It was an old wart that while filterwarnings() and simplefilter() accepted regular expressions for module name and warning message, the CLI -W option and the PYTHONWARNINGS environment variable only allowed to specify literal strings. For a long time, there was a discrepancy between behavior and documentation which was resolved by changing the documentation.
But from now, you could specify a regular expression surrounded by slashes (for example, -W 'ignore:/.*was never awaited$/:RuntimeWarning:/.*\.util/'). Technically, this is a breaking change, but I hope that very few warning messages start with a slash. If you have any suggestions or objections to the idea, implementation or documentation, you are welcome. Anyway, I hope this information is useful to you.