Python Regex Extract String Using Sql