It would be stupid and short sighted to spend billions on the Zvezda shipyards paid to South Korea to get a large and fully modern shipyard able to produce all sorts of products and vessels and then just abandon the whole sector to market forces.
This new growth in military is no surprise and it is not accidental... a lot of ground work had to be done and a lot of technologies had to be mastered and still do... in many ways it was like the rebuilding of the Russian Army... a lot of it seemed to be standing still and doing nothing, but a lot of planning and preparation went into what happened... from creating a whole new new generation C4IR network, through to building training bases to learn to use the new hardware and systems... they started with a German system that was state of the art HATO that most HATO countries could not afford and the obvious and inevitable sanctions meant they completed several other training facilities on their own in their four new military regions.
The Germans assumed Russia couldn't complete it and so they would never get any functioning training facilities, just like the US and EU assumed that without the Ukrainian gearboxes and engine parts they could not have a navy.
They were of course wrong and the resulting systems they have developed were all done with state of the art design and improved on the old Soviet Era hardware the Ukrainians were producing.
Built with modern materials and made to much finer tolerances they found their new Russian made motors and gearboxes had better performance and were more reliable.
So now they can offer to sell such products to other countries knowing they can make it all without permission...
So eventually it will be good for Russia to take control of the 3 delapidated large yards in Nikolaev and the one in Kherson (plus the othe repair yards in cities like Mariupol, Ismail, etc), but the investment to be done to bring them to a modern and efficient state will be massive (probably comparable to building the Zvezda shipyard)
By the time Russia gets anywhere near those places the whole country will be timeshares and cafes...
Russia can let that stuff go and plan to fix its own infrastructure and those of actual allies who would appreciate it.
Better in the meanwhile to concentrate on bringing to a modern standard the available ones and stopping ordering ships from abroad (I believe that a large part of civilian ships used from Russian firms are still made in foreign countries).
Producing them in Russia will be alot cheaper anyway, though the fact that the price of oil might start to climb again could mean that the Ruble is going to become more valuable compared with the Euro and Greenback... if I was into money speculating I would be transferring money into Rubles right now as global travel starts to create demand for fossil fuels.