Variable expension in file names for templates

According to the gitea documentation:

Matching filenames and paths can also be expanded, and are conservatively sanitized to support cross-platform filesystems.

But when I added a file $REPO_NAME.tex to my template the variable is not expanded.