I got the error re.error: global flags not at the start of the expression at position 15
This is fixed by editorconfig/editorconfig-core-py@6722ab5, which is included in v0.12.3
I fixed this locally by copying the changed lines linked above.
Global flags at the start of the expression were deprecated since python 3.6 and got invalid in python 3.11 (from Python-Markdown/markdown#1312).