That's what I thought at first. MDN link. There are also some benchmarks online if you search "regexp constructor vs literal", this one shows a 3x speedup on Chrome. Doesn't seem like it's going to be that much of a difference in realtime though if it's still millions of operations per second.
There's regex libraries that wrap PCRE and ones written in pure Nim, yet none that uses pure JS regex syntax. This would be a start:
Of course you could also wrap
new RegExp
but MDN says it's slower for constant patterns.