import re
text = """Goiânia Vitória Brasília [Campo Grande] Fortaleza [São Paulo] Manaus [Santa Bárbara d'Oeste]"""
regex = re.compile('\[(.*?)\]|(\S+)')
matches = regex.finditer(text)
for match in matches:
	if(match.group(1) is None):
		print(match.group(2))
	else:
		print(match.group(1))