message: wrong rule applied?
  shouldn't new RegExp() receive the regex formula and not the input value?
diff: @@ -3,7 +3,7 @@ import { getSingleParam } from './utils';
  const regexValidator = (value: any, params?: any[] | Record<string, any>): boolean => {
  let regex = getSingleParam(params, 'regex');
  if (typeof regex === 'string') {
  - regex = new RegExp(value);
  + regex = new RegExp(regex);
  }
  if (Array.isArray(value)) {
  