fail2ban does not start on brand new debian 12

Failed during configuration: Have not found any log file for sshd jail

open or create /etc/fail2ban/jail.local

add to [sshd] section (where you also enable it) a new line backend = systemd