Parse expression parentheses correctly