tmux pending output does not escape backslashes
The tmux command
capture-pane -p -P -C -t %%%d outputs
\nnn for control characters and raw backslashes, so you can't tell if a backslash is part of an escape or not.
Send a patch to fix tmux and update iTerm2 to detect the tmux version and treat backslashes appropriately.