In GNU Emacs there is a feature to highlight matching brackets in code with the same colour.
However when the code which the brackets enclose is really long with severa
backward-sexp is what I use. bound to ESC-left. Then ESC-right to get back to where you were