Hi @Sebastien, welcome to the community!
Unfortunately, n8n expressions don’t fully support fat arrow functions (this will luckily change in the future).
So for this to work you would need to use the Code node, allowing you to run your function outside of the expression logic, like so:
This is the result:
I am sorry for the trouble this causes, hope the workaround helps