Frankly, we don't really know yet because we can't predict what either side will do, or what concerns/problems are boiling away under the surface.
What's important about real world events is that they are not like a board or video game. In a video game it doesn't matter if you flawlessly KO your opponent or win by the tiniest sliver of health, a win is a win.
In the real world though the resources and lives poured into conflicts like these can very well be used for something more productive. At any moment russia could swallow their pride and pull out, but they could also fight to the last man to never admit defeat.
Additionally the methods of victory differ between Ukraine and her allies (the west).
The US and Europe want a swift victory to garner support from voters. So they push Ukraine to do risky offensives and maneuvers.
Ukraine on the other hand wants to play its cards very carefully. Right now they recognize for every Ukrainian casualty, there are multiple Russian casualties. They want to maintain that postive ratio and do not want risky or loss heavy offensives. You can see this mindset at work in Bahkmut. The west wanted Ukraine to pull out of Bahkmut immediately but Ukraine recognized the extremely favorable casualty ratios, with many Russian casualties for each Ukrainian which is why they held on so stubbornly. It wasn't to hold Bahkmut, it was to grind down the Russian force.
My thumbs are dying so I'll direct you to a very accurate and detailed source of info on the conflict. Check out William spaniel on YouTube, he is an author and has many videos on the conflict, outlining the goals and problems on each side.