When the Kotlin/JS IR compiler is enabled in Kotlin 1.7.0, minification of member names is turned on by default which breaks `preprocessRegex`. As a workaround, disabling minification as described in the 1.7.0 [change notes](https://kotlinlang.org/docs/whatsnew17.html#minification-for-member-names-when-using-ir) fixes the issue.