Does `$not` and `$regex` expect different types? Why isn't this wrapped in a RegExp object.