import re

textToSearch = """ 
hello{
    @hi {
        I want this text
    }

    @hola {
        I don't want this text
    }
} 
"""

regex= r'[^\S\r\n]*@hi\b[^\S\r\n]*{[^{}]*}'
result = re.findall(regex,textToSearch)

print(result) 