Python Regex Extract String Using Sql To Create