But in the case of Finland, the land lost was arguably land they could afford to lose - if it meant getting out of a war with USSR. In the case of Ukraine, it is virtually all of its sea access.
it seems you're trying to determine a clear winner and a clear loser, but it's absurd, it's not binary.
and it involves more than just the countries at war if you want to determine who lost what and who won what at this point.
Ukraine has lost the most, their is no discussion here, but they can lose much more.
Russia has lost a lot and still hasn't achieved any of its goals, but can still negotiate some of those
Then there is Europe on the losing side, not as much, by a far margin, but it's surely not in the side of those who gained something
On the "winning" side it would be hard to give an order, but here are some countries that have gained something out of it
NK, Iran : technological transfert from Russia
India: cheap oil from Russia
China, from which Russia is now dependent
US, that have replaced the biggest part of Russian exports in Europe
I'm not sure where to put NATO that has expanded strategically but also exposed weaknesses