For instance, try this policy:
raise "Detected issue" if:
# specify your conditions here
# (you can learn more about Invariant policies at https://github.com/invariantlabs-ai/invariant)
# specify policy conditions here to identify potential issues
(msg: ToolOutput)
"[File:" in msg.content
In case of a match of [File, when computing the ranges the analyzer breaks, since "[File" is not a valid regex.