2fa stops working on root account on Proxmox server for login…or any other account, version 7.x of Proxmox.

On the proxmox server

edit /etc/pve/user.cfg

user:root@pam:1:0:::jim@domain.com::x:

remove the x between the last two colons

Proxmox 6 is similar.