In reality, the Ka-52 has been used with great success against the Ukranian counter-offensive.
The difference is that they now have ATGMs with a 10km+ range (outside MANPAD + SPAAG range) and operate over the Russian lines against attacking forces.
So - in attacking mode, they lost a lot of...