I have a string with several words inside, some words are separated by space, but some are compound words and are protected by brackets.
EX:
string="Goiânia Vitória Brasília [Campo Grande] Fortaleza [São Paulo] Manaus"
I need to separate these words by returning a list with them separated.
Output EX:
"Goiânia"
"Victory"
"Brasilia"
"Big Field"
"Fortress"
"São Paulo"
"Manaus"
How do I create a regular expression that does this in python?