I wasn’t clear enough in my original mail.
?query={"name":"/Bob/“}
In this query, “/Bob/“ is a string. If it were /Bob/, then it would be regex, but JSON doesn’t have a regex type, so /Bob/ would be illegal JSON. Once the JSON is parsed, it will produce a map will have “name” as a key, and “/Bob/“ as it’s value - it will be a string. The server will query using this string, and not a regex as you intended.
What you might try instead is
?query={“name”: { “$regexp” : “/Bob”}}
which will remove the ambiguity that is causing the issue.
Make sure to validate the queries that the client is sending to the server.