Create Regex From String Python Replace Substrings