China is proving socialism does work. The CCP learned from the failures of the USSR.
Also, Cuba, which is under a US economic embargo, is not a good example to prove socialism doesn’t work. The economic embargo and sanctions, not socialism, are why they have shortages of certain goods.