Backspace not working in command line after Percona MYSQL upgrade

I have upgraded Percona MySQL from 5.7 to 8.0.29 and I see backspace is not working in MySQL command line. Can you please let me know how to fix this ?

I have erase = ^? in stty command

Whenever I hit backspace it shows space in the command line.

mysql> show databases   
percona@11.11.11.11:~$ stty -a
speed 38400 baud; rows 37; columns 104; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = <undef>;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho
-extproc

Hi @shirisha,
It should not relate to the MySQL upgrade; I believe there must be something in your terminal.
You might check your terminal emulator and check local settings:
echo $LANG
Also, you can try the Ctrl+H combination for backspace, which could be a temporary solution.