Grafana loki search

Hi All,

I am using loki data source and fetching RAW system logs.
in dashboard I have search bar to search some string/number in RAW logs.


In query I am using variable “(?i)$search”.

Previously, it was highighting the string/number searched in RAW logs, but now it does not.


Instead of variable in query, If I use static value e.g. “5002” it highlights in RAW log.


Any idea why it is not highlighting searched keyword, when variable is used in the query?