Hello,
Thank you very much for bringing this to my attention.
I have confirmed that @var@ are not replaced as expected when used within token modifiers.
The following dev build should correct this issue
Download ffxp5.1.0.3838.zip
If you still experience problems please include a sample that reproduces the problem.