After consulting bug#76205 , a workaround is to use jedi completion (add export PYTHONSTARTUP="$(python -m jedi repl)" to bash_rc).
Original problem persists for emacs 30.x .