For some reason UltiSnips insert these snippets without any problems, however the documentation (:h UltiSnips-character-escaping) says this:
4.1.4 Character Escaping: *UltiSnips-character-escaping*
In snippet definitions, the characters '`', '{', '$' and '\' have special
meaning. If you want to insert one of these characters literally, escape them
with a backslash, '\'.
For some reason UltiSnips insert these snippets without any problems, however the documentation (
:h UltiSnips-character-escaping
) says this:So I think it's better to escape the
$
s :)