I can't say anything specifically about ECMAScript, but there is a Python wrapper around Google's re2 library. https://pypi.org/project/google-re2/
There are a few "gotchas" on the pip page, but for the most part you can just "import re2 as re" and replace the re package. It is much faster for certain expressions. I went from matches taking so long they had to be cancelled to half a second.