Thanks for the suggestion. I use an extension that is called Bracked Pair Colorizer 2, that as the same suggests gives your brackets colors. So each code block gets its own bracket color, and if a bracket is red, you know you have forgotten a matching bracket.
So while that extension does something completely different, it does to some degree achieve the same. It keeps you aware of which block context you are in.