Typescript Variable Inside Regex Tutorial Js