SERVER-10026 check for comparison match expressions with regex during parsing

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>