exposed a module-load-time config to enable/disable regex support + added tests for the same