What could be causing: MongoServerError: Regular expression is invalid: UTF-8 error: byte 2 top bits not 0x80
I get this MongoDB error when trying to query from the DB using regex, which is supposed to ignore diacritics in the fields. I believe the RegExp query is the part causing the error. Is there anything wrong with the RegExp or what could cause this error?