It seems elpy doesn't work with python 3.10. For instance, see the issue here posted on the elpy repo in github. I had the same problem as that person mentions, and it seems many other people too when going to the issues in the official repo.
Does anyone know if somebody is working on fixing this issue? If so, an estimate of when it will be solved?
P.D. if this question does not belong here, I'll delete it.
Language server Protocol for Emacs
emacs-lsp.github.io/lsp-mode and thepylsp
server emacs-lsp.github.io/lsp-mode/page/lsp-pylsp.