They’re generally allied nations in NATO with compatible technical standards. NATO really doesn’t need member-states with planes that can’t fit American missiles - plus it saves the purchasing country the
huge expense of having their own R&D programmes for domestic planes.
As for other countries: it’s still in your geopolitical interests to have countries who aren’t allies using your gear - not just for the money - but because it means you already know their weaknesses and you can sell them nerfed “export editions” to ensure you have technical superiority and to lock them in to buying parts, accessories, training, and upgrades (and successors!) from your own nations’ defence contractors and you can saturate a market that your geopolitical rivals (Russia, PRC, Iran, etc) would otherwise have access to, thus weakening their sphere-of-influence.
For a recent example of it going wrong, see the S-400 sale to Turkey.
Arms sales are an ugly thing - but if NATO states didn’t sell arms to Saudi Arabia, Libya, Turkey, etc what would the alternative be?