Aside from that - not clear of your requirement details here.
If your search requirement is to exactly retrieve the documents where “tenant::location::d13c8a1c-ce8c-4bff-87f2-8bc2d2015f4e” occurs in $someField then,
you could index the $someField using a “keyword” analyzer and that would keep the whole field content intact without any tokenisation applied to the field contents in the inverted index.
This lets you search directly using the same format $someField:"tenant::location::d13c8a1c-ce8c-4bff-87f2-8bc2d2015f4e" without any character escaping.
Another thing to note is that - your character escaped searching pattern might be retrieving documents where any of the tokenised tokens of your search text appears and Not sure whether that is your requirement here.
@sreeks Thanks for the reply. Your answer was what we were looking for. We had the wrong analyzers on the fields we were storing keys in. Changing them to keyword analyzers did the trick. Thanks again and you have a great holidays.