Tbh I'm not sure if Ukraine gained much or even i think lost a bit. Depending on the terms of Wagner and Prig in Belarus, Ukraine may need to deal with a armed force that can and is willing to attack the north. One thing to remember sure, Prig called the war goals and reasoning lies and falsehoods, but it is extremely clear the Russian people have been lobotomized politically, the Russian elite content with invading Ukraine. Reasoning means nothing domestically, only the material reality. Reality is war is profitable, especially for people like Prig who gained power, wealth off of the SMO, and certainly staying the war promises continued reasoning and material for existence. The prospect of war, the loot, the pay clearly is enough to gain some sort of semibalance of manpower increase.
Consider the fact Wagner has noted victories, certainly a portion of low ranking sympathy for Prig is in the fact that he has wins.
End of the day, no matter who rules in Russia, everyone seems to agree that killing Ukrainians is perfectly fine. Only that they aren't killing them effectively or doing what's needed to kill them.