SSH prompt shows twice when connected to Umbrel OS. How to configure the PS1 variable correctly?

After I issue a command on ssh I get a double prompt in each line
I’m guessing it’s because of the PS1 env variable not configured correctly, but I’m not sure what to change exactly, it seems cryptic:

echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$

How the problem looks like: notice that pressing enter on a blank line gets rid of it, but it comes back after issuing the command