The common package for parsing SQL in Python is sqlparse:
sqlparse
pip3 install --user sqlparse
I wish to parse a list of create table<
create table<