Use case or problem
When looking at unlinked mentions, Obsidian will suggest text from code blocks which includes mermaid code. If you link this it can interfere with the mermaid rendering or the associated code.
It would be ok for mermaid IF you could actually get backlinks to work in the render.
Proposed solution
Exclude code blocks from unlinked mentions.