Python Regular Expression Extract String Using Sql