Typescript String Match Regex Example Python