Typescript Variable Inside Regex Javascript Validator