It depends. If you're like Russia and only have limited stocks of PGMs, then you're stuck using dumb bombs and S-8 unguided rockets. So you either bomb from high altitude, which isn't really air support, much less CAS, or you get down in the weeds where you're facing Igla, Starstreak, Stinger, or Groms. Those will ruin your day pretty quick, and a plane flying CAS is much easier to see (and hear) than a tank. And if you're a helicopter, the same rules apply.
Tactical aircraft in Ukraine is also targeted by Buk/Tor/Tunguska, but I believe most of the aircraft and helo losses have been due to MANPADs.
Now the US is realizing that what it once thought of as robust stocks of PGMs may not be enough for a high-intensity conflict. Production rates of Javelin are pretty slow, and the Stinger has been out of production for a while with no planned replacement. The US Army has always given air defense low priority, counting on the USAF to provide air supremacy. Against a near pear, that might not be the wisest choice, and doesn't help with drones anyways.