Cuba was communist and hostile to the US. Ukraine is not communist not belligerent to Russia. Apples and oranges.
They are absolutely hostile to Russian interests.
Oh, and communism has been defeated, completely.
It's last vestiges reside in Europe and USA. And North Korea. And a few other insignificant states.