F-35 isn't a deterrent. Nukes are the deterrent. Iran and Venezuela lacked nukes. North Korea doesn't lack nukes.
The F-35 is just peacocking but ultimately useless. If these war games were realistic the game ends on the first move which is asking the question "Do they have nukes." If the answer is yes, then the game doesn't even start.