It seems that you are using the unrecommended and dangerous string concatenation. Try using parameterised queries, something like this:
Dim cmd = new OleDb.OleDbCommand("UPDATE MyData SET RegexString = ?", MyConnection)
cmd.Parameters.AddWithValue( "s", vRegexString)
There are more approaches that are described in documentation.