Create Regex From String Python Replace Substring