Proposed patch for Geany 1.32 solves the problem: the brace is highlighted only if the caret is before or at the brace; if the caret is behind the end-of-line, the brace is not highlighted.
[geany-1.32-highlight-braces.vdb.patch.txt](https://github.com/geany/geany/files/1709175/geany-1.32-highlight-braces.vdb...)