syntax will expand an environment variable. To expand a variable set in your file, you need to use the
syntax. If you can change your file syntax, you can use this module. If you can't change your file syntax, you can probably hack the module source code to do what you want, or you can pre-process the file to delete {}.