It would be a needed feature to allow builtin function evocations in data expressions, for example:
...
locals {
token_name: sha3_256(bytearray.push(out_ref.transaction_id, out_ref.output_index)),
...
}
...
Currently this can be worked around using input parameters.