Just found out a blog post I wrote from 2006 and then promptly forgot about was the starting point for a 15 year long process that resulted in RegExp.escape() landing in the next ECMAScript standard! https://simonwillison.net/2025/Feb/18/tc39proposal-regex-escaping/