Beware, that current Debian (12 and 11) and possibly other systems, which incorporate config file plugin system, having config for sshd like this in sshd_config:
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Include /etc/ssh/sshd_config.d/*.conf
...
PermitRootLogin yes
...
and custom config in /etc/ssh/sshd_config.d/my.conf
PermitRootLogin prohibit-password
Will result in allowed password, since sshd_config will override setting.
Tested, thus warning.
Special note on this, because some systems, e.g. Proxmox will write down value explicitly in sshd_config file, and if you are managing custom configs with configuration management tool like Ansible, it will be false positive configuration.