The closing bracket has to be always at the same tab as the opening bracket.
Second: if you place the cursor in SED right behind an opening bracket, this bracket will be shown bold and its corresponding closing bracket as well. This way you can assure that each opening bracket has its unique and right positioned closing bracket.