src/op_mode/show_users.py imports the spwd module to check whether an account is locked. spwd was deprecated by PEP 594 in Python 3.11 and removed in 3.13, so the command will fail with ImportError once the base system moves to a newer Python (Debian trixie ships 3.13).
Read /etc/shadow directly with the same locked-account semantics (* or !-prefixed hash). No other PEP 594 module is used in vyos-1x.