That only came into effect in june 2017.Tai and northrop/grumman signed a letter of intent all the waaaay back in feb 2007 for the turks to be one of only 2 international suppliers to n/g for the F35 program.CAATSA says any country that buys from Russia is sanctioned. So I'm afraid no compensation.
Also theres the small matter of the $195,000,000.00[up to 2014] that the turks have invested in the program since 1999.
Sanctions are not an excuse for failing to abide by the terms of contracts that you have signed,neither are they guaranteed to get you out of paying compensation if you do fail to honor a contract.
Truer words were never spoken,well said sir.But, no matter what the agreement, it is eventually politics that will decide the fate.