It’s not possible to use arrow functions in n8n Expressions. From the docs: JSON with JMESPath - n8n Documentation