When Putin first became president, he also toyed with the idea of joining the EU, even NATO:
https://www.theguardian.com/world/2021/nov/04/ex-nato-head-says-putin-wanted-to-join-alliance-early-on-in-his-rule
but finally brought to his senses after being repeatedly spurned.