Have attack helicopters become obsolete?

Dedicated attack helicopters have proliferated all around the world, with a dozen types made in various countries. But the events of last few decades, including Ukraine, showed how vulnerable attack helicopters are. Are all those harbingers of what’s to come? Are attack helicopters already obsolete today?

Have attack helicopters become obsolete?