Hi. This question is motivated by scikit-hep/pyhf#1873 and is similar to subject matter to pytest-dev/pytest#8759 but I think different enough that I'm still going to ask.
Here's a GitHub Gist with the example files as well.
In scikit-hep/pyhf#1873 I have a set of warnings that I want to be able to filter with filterwarnings
and with a simple regex that works fine with warnings.filterwarnings
# std_filterwarnings.py