https://bugs.winehq.org/show_bug.cgi?id=53400
--- Comment #2 from Michael Cronenworth mike@cchtml.com --- After more investigation I've run into a complex issue that I'm not sure how to fix.
Python 3.11 has changed a warning to an error with regard to regular expression syntax. They have stopped allowing global flags from being anywhere but at the start of the regular expression. Probably every Python user has, for years, used regular expression syntax the "wrong" way.
https://bugs.python.org/issue47066
The Mozilla code uses a Python lex and yacc library called ply. The library is still seeing some maintenance upstream but it is not Python 3.11 compliant and so even the latest code currently fails to work. It's failing with at least 3 regular expressions in the xpcom/idl-parser/xpidl code and the depth of the failure looks beyond the time I have to spend on this.