The politics of Ukraine war is extremely complicated.
They aren't actually. And none of that history relates to the current war.
Which is all about Russia's internal politics and ideology. And not about the after-effects of post-WW2 territorial transfers at all.
Those transfers in turn were in turn the work of the Allied powers, not Ukraine.