How to remove this red color? Only by renaming my notes?

Have you tried putting a backslash in front of the dollar? This works on my system (Windows) and still points to the correct file.

Single dollar signs around text signify inline maths.