If the user accidentally introduces an unmatched }, it is matched with the opening (, which is treated as a success.
Further, all the data at the end of the parse is ignored, which is probably unexpected (data at the end of the parse should at least be a warning, if not actually an error).
Failing test checked into diagnostic_qol here