That's completely valid, but it doesn't necessarily outweigh the benefits of just how much the F-35 outclasses all the other options available.
This is, more than anything, an issue of the rest of NATO abandoning weapon development and relying on the US to do it instead. You're right that this homogeneity brings potential vulnerabilities, but that's a problem that needs long term solutions.
Saab are developing a sixth gen fighter, and when that becomes available I can absolutely see the arguments for adopting it, but right now the arguments are a lot more complicated. While there are plenty of good arguments against the F-35, none of them really address the degree to which it overmatches every competing option. That's a factor that simply cannot be ignored.