Python Regular Expression Extract String Using Sql From Cli