After opening #1555 the regex linter warned me about a problem in my patch. This was not caught during extensive testing using tox, and indicates that tox and the GitHub checks are not aligned with each other.
tox must be updated to use the same regex linter that GitHub checks is using so that contributors can catch problems before submitting PR's.