The Second Argument for the MEssageBox Function is the Titlebar String.
Regular Expressions are not applicable in messagebox. Regular Expressions are applicable only in formatting the strings not here. Try to change the code like this.
MessageBox.Show("opened connection to : " & mySqlConnection.Con )