Prevent `regex` to leak in global