The Ukrainians certainly are not out of weapons or manpower. The Poles just received about 250 tanks and self-propelled artillery from SK. The armor they replace will be going to Ukraine, as well as Slovakian Mig29's. France just supplied more howitzers and ammunition as is the United States.
The Russians are the attackers in Bakhmut and have to cover territory where every inch is zeroed in by Ukrainian artillery. The Ukrainians will give ground if they have to, but aren't using anything near the 30K troops to hold it that I've seen claimed. Every front line report I've seen is surprised by how few Ukrainian forces seem to be holding Bakhmut.
The Ukrainians are simply waiting for the mud to freeze before launching another offensive.
Ukraine has won the Propaganda war—with Zelensky playing a defiant Churchill. Great theater—with drone strikes making news all over. Ukraine has won the money war, hauling in Billions of Bucks, Pounds, Marks and Coin.
Ukraine has also won the political war gaining support from the Western Nations and the United States. BUT has she won the real war—that bloodbath that goes on day after day. Well, not so much. Russia made some blunders and got a bloody nose, but the more they fight the better they get. It now becomes a terrible repeat of World War One—a war of Attrition. Which nation has the most will to fight? In this Russia holds all the cards. The west, and the United States has a long history of losing interest, and just pulling out, think, Hong Kong, Think Kabul. Ukraine may well fall from within with a civil war in Ukraine and a new Democratic Government. Russia too could fall apart—but with a long history of autocratic rule that seems doubtful. When things go south in Russia—they turn to a strong man to fix things. No, Putin may well die, but will Russian Imperialism? No.