I was getting this syntax error in one of my steps even when I commented out all of my code. This was after I had removed my params references, so I tried putting a params reference back in. This made the step work and after that it worked even when I took the params away again. (The code was identical to the previous version that had been throwing a syntax error.)
It cleared up but if it happens again I’ll let you know.