The project is not even passing the compiling due to that “syntax error”
The issue is the transaction item because after deleting that piece, it works.
By the way, the workaround at this point would be to use If, Else If, Switch etc to determine which Invoke Workflow is executed, with each Invoke Workflow having the workflow path hard-coded.