VAX sometimes still halfways treats closing brackets inside of strings. Have a look at the following string:
String.Format("({0} IN |{1})", name, list)
Now type a opening bracket, move the caret right after the closing curly bracket and type a closing bracket. VAX will not insert a closing bracket, just as it would do outside a string.