\ is an escape character in Java, see here for more information.
Assuming you want to replace the \ with nothing (i.e. removing it effectively) the correct syntax would be: replaceAll($Variable,'\\','') as you need to escape the \ with a \ so it is not treated as an escape character (which you are currently not doing hence the error).