Code is only one of many dependencies (designed in, I assume).
USA is always bitching about China and yet, it uses its giant techs to spy on the whole world. Microsoft O365 blocking Europen politics email account by Trump demands.
Seeing Europe ditching USA big techs software/SaaS in flavor of open-source, is the best thing that could have happened.
Back to the F-35, anything built before 80s, were built to last. Everything built now is built to break and overly engineered, it is like if the whole world decided to become German engineers and yet have no idea of what they are doing.
Australia F-35 program has been a complete fiasco, the project budget no longer knows what budget means, relaying on USA technology or anything really has been proved to be very costly and you don't really own it, the USA does. Just like China but China cannot do what the USA can for whatever reason.
There is a country that has a full exception to this. They run their own maintenance facilities, have their own software layer running on top of Lockheed system, their own EW suite, and significant control over the data flows. They negotiated this precisely because they understood the dependency trap. In addition they requested modifications to allow the F-35 to carry nuclear weapons.
The naivety of the Dutch Defense Secretary in thinking all have the sames rules is what would be expected...Guess the country name...