text = """show the (name) of the (person)
calc the sqrt of (+ (* (2 4) 3))"""
import pyparsing
for match in pyparsing.nestedExpr('(', ')').searchString(text):
    pass
Regex: Match brackets both greedy and non greedy