Create Regex From String Typescript