Why this happens
Every node shape has a matching close: [ needs ], ( needs ), { needs }. Forgetting the closing bracket on one node means the parser keeps consuming text -- including the arrow and the next node's opening bracket -- looking for the delimiter it was promised.
SQS is Mermaid's internal name for a square-bracket start ([). Seeing it as the unexpected token almost always means an earlier ] is missing.
How to fix it
Scan backward from the reported line for the most recent [ that has no matching ]. It's usually one or two nodes earlier than the line the error points at, because the parser only fails once it hits the next bracket.
MermaidPen's editor highlights the exact failing line so you don't have to count brackets by hand.