Democratic leaders can easily fall due to scandal. Authoritarian figures cannot.
China can commit the enormous mistake of its zero-COVID policy precisely because its leaders will never face a reckoning at the ballot box. Russia can stagnate in kleptocracy for the same reason.
Vladimir Putin, a former KGB officer, has controlled the Russian Federation for 22 years, starting in 2000. He has signed laws that will allow him to remain in office until 2036, at which point he'll be 84.
His chief opponent, Alex Navalny, is imprisoned in Russia. Navalny's party is not allowed to participate in presidential elections. Navalny survived one attempt to poison him, and another attack in which he lost 80% of the vision of one eye when an assailant sprayed a chemical on his face.
So sure, you can believe that Putin was elected democratically if you want. He'll be elected democratically until he can no longer force Russia to elect him democratically. He resembles an African president-for-life like Mugabe much more than he does a democratically elected leader. If you believe Putin's claims, it would be useless to debate it further.