They shutdown F-22 production after 180ish jets. The original order was 700-800, I don't remember the exact figure. Because we were entrenched in the sandbox and not focused on more capable adversaries, we didn't see the value in continuing their production.
I'm sure there's more nuance to it, but that's the nuts and bolts.