Location may vary, but have you taken a look at your ~/.discourse_theme
file?
I’ve run into an issue before where my terminal emulator was using “bracketed paste mode”
You can see the difference below (these aren’t real keys, I’ve truncated them for sharing)… if you see something like the first entry with escape characters, that’s incorrect and won’t work.