Python Regular Expression Extract String Using Sql For Data