Rethink regexp engine's backref-related compilation state