Russian Air Defense units would have an IFF system integrated into their air defense operations. Irreqular separatists who recently gained control of UKR SAM assets probably wouldn’t.
Mistakes can still be made by trained personnel with sophisticated systems. See the USS Vincennes incident in July 1988. The USS Stark was hit by an Iraqi launched Exocet about 1 year prior.