Basically, mIRC is thinking that the ( and ) are part of it's scripting language. You need to tell it that's it not by using the ascii characters for the text instead.

Code:
$remove($2,$chr(40),$chr(41))


See http://www.roubaixinteractive.com/PlayGround/Binary_Conversion/The_Characters.asp