As recently confirmed by the head of the Ukrainian delegation in Ukraine-Russia peace talks this could have been avoided if the US and UK hadn’t scuttled a deal in the spring of 2022. David Arakhamia, who is now parliamentary leader of Volodymyr Zelenskyy’s Servant of the People party, said Russia was prepared to end the war if Ukraine agreed to neutrality, but UK Prime Minister Boris Johnson told Zelensky not to sign the peace deal. Former Israeli Prime Minister Naftali Bennett, Turkish foreign minister Mevlut Cavusoglu, Vladimir Putin and others have echoed this account of the initial peace negotiations.
I’m guessing neutrality wasn’t Russia’s only condition.
From the Ukrainian perspective, reparations and repatriation of land/prisoners probably would have been a significant requirement. Where did that fit?