Ukraine as a sovereign nation can make alliances as it pleases. Russia has attacked Ukraine to strip it of its sovereignty. Russia is now trying to get the US to do something to Ukraine it cannot do itself.
Can Ukraine stop Russia from allying with North Korea, Iran, and China? If not, then Russia cannot forbid Ukraine from allying with whom it chooses. That is a basic element of sovereignty.