Python Regex Extract String Using Sql From Cli