Allow me to point out the very practical reality that the figure you're quoting was the cost to build an F-22. We haven't built one since the last F-22 rolled out of Marietta in 2012, and all the tooling has been put away (and some of it has been lost). It would certainly be possible to resume F-22 production, but the cost of the first few new aircraft would be even higher than what you're quoting because we would have to teach ourselves how to build it again, and set up all the equipment and logistics necessary to do it. That won't come cheaply.
The next US fighter / attack program is going to be like that. It aims a lot lower and should be more predictable. I've lost track if it's called F-X or F/A-XX or what now, and what are the split parts etc...
1) F/A-18E Strike Fighter
2) F/A-18F FAC(A) CAS/Strike Fighter
3) EA-18G Growler
Commonality is ~80% between all 3 aircraft. They could probably make a F/A-XX based on F/A-18E/F with similar avionics, and engines based on the F135 in a larger airframe, but they could make it happen relatively economically if that was the priority.
Back in the sixties and seventies when the Hornet was designed, modern stealth shaping was not really known.
Modern airframes could be a lot more capable.
Generally, near the end of production the program makes a final buy of parts to warehouse for "spares and repairs". The typical threshold is twenty years of support. If the spares run out during the support lifetime, it is up to the customer how to handle it. Sometimes we can cannibalize other aircraft, sometimes we repeat the DMS process for the parts we ran out of, sometimes (if the customer wants to keep the aircraft flying for a while longer) we do a tech refresh and design new replacement modules with current components.
Furthermore, the F-22A was already running into parts obsolescence issues when I was working on it (2002 - 2006). Those would have continued to get worse had production expanded or continued. The F-35A was (supposedly) designed to better handle those issues.