To go to the bracket matching the one before the caret, press C+] or click the bracket scope indicator in the gutter.