This seems to be a US-centric view of the world, which assumes that Ukraine following blindly in whatever encouragement was provided.
Zelensky is Ukraine’s 7th President, 3 years into his term. Ukraine has had administrations that were Russia-centric (two Kuchma terms, and then half of Yanukovich’s term) and in economic terms those did not pan out to be impressive.
Ukrainian companies seem to crave access to European markets, as in many core areas (grains, livestock, aviation, machinery) they are competing with Russia. In energy consumption Ukraine also seems to get a better price for Russian natural gas when they are part of EU monopsony, negotiating a bulk discount, vs one-off negotiations.
Is it too radical to assume that Ukrainians were acting out of self interest?