This prevents the use of the RegExp lookbehind feature
/(?<=a>)b/
new RegExp("/(?<=a)b")
These will not be allowed because they are not supported in the following browsers:
- Edge < 79
- Safari < 16.4
- Firefox < 78
- Chrome < 62
You may be able to rewrite your expression using (Negative) Lookaheads, but if not then there is no solution for this, aside from pulling in a custom RegExp library.