There are terminals that have protections against that AFAIK.
`set enable-bracketed-paste on` in .inputrc (at least compatible with bash, terminal also needs support)
I'm sure they exist.
Gnome shell doesn't AFAIK.
It's an odd thing to protect from; any program that has access to the X11 clipboard is going to be able to run a process as the current user.
gnome-terminal does support bracketed paste[0], and both bash 5.1 and zsh 5.1 enable it by default, so if you paste into it it will input a newline in the prompt instead of executing the command