Typescript Replace All Occurrences Of Regex Python