Typescript Variable Inside Regex Python Geeksforgeeks