T016error
Feature not allowed here
The expression uses a feature this context does not allow.
When it is reported
Some places accept only a restricted kind of expression. For example, dynamic index access is not allowed where the value must be known when the template is built.
How to fix it
Use a simpler expression here, or compute the value in the script block.
In your terminal and editor
$ piko explain T016Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeDisallowedFeature in Piko's source to see where it is reported.