I have similar problem with TERM=tmux-256color in VS Code.
TERM=tmux-256color
I tried faster command sequences, but it did not solve the issue.
This problem started to appear when I upgraded Ubuntu from 22 to 24.