I never upstreamed this because upstreaming to a dead project seemed pointless, but maybe qjs-ng wants to adopt the patch: https://codeberg.org/kiesel-js/kiesel/src/branch/main/patches/libregexp.patch