Replace A Pattern In Python Using Regex In Sql