It also wasn't officially Russian territory. They were still playing the game of "these are separatists that just want to join Russia", so it wouldn't make sense to invest anything in what's really been an active warzone for 8 years. Officially annexing Donbas was probably always the long-term plan from the beginning, but for some reason that turned into "fuck it, let's take Ukraine instead".
I don't think the Donbass was ever secure against being retaken. Hence no investment.
It's still strategically valuable, because you're still taking resources from the enemy.