optimize: resty.core.regex: forked the original shared code paths to multiple specialized versions, which helps the JIT compiler.