I want to search values having special characters such as \" $ / . @ > \" in a document.
Lets consider, I\'ve myKey with values like \"test$aus
You can use https://www.npmjs.com/package/regex-escape. It is a good library for escaping special characters to be used in regular expressions
var RegexEscape = require("regex-escape");
let keyword = RegexEscape("{#/}");
// => \{#\/\}
db.myCollection.find({ myKey : { '$regex' : keyword, '$options' : 'mi' });