Parse parenthesized patterns