import re
s = """Hello world
I am Lucas [help me] (help me 2) <help me 3>
Hi"""
print(s)
print(re.findall(r"\[[^[]*]|\([^)]*\)|<[^>]*>|\S+|(?=\n)", s))