$variablename$ is used by PostgreSQL as dollar quoting: https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-DOLLAR-QUOTING
It would be nice to be able to decide which token to use, or completely swap out the VariableSubstitutionPreprocessor.