The cost to build a ship will depend on the cost of the materials. Right now, we’re still in a period of scarcity and we have new components that command premium prices because supply chains haven’t yet been established. Scarcity will end, supply will increase to meet demand and prices will settle in to a new normal.
Complaining that things used to be cheaper is like complaining that houses in the neighborhood you want to live in used to be cheaper - it’s true but irrelevant. If you want to live there now you need to pay market price.