Submarines can’t win a war at sea alone, and we have ASW capable aircraft flying constantly for surveillance against them. We’ve been doing it for more than half a century now.
The reason aircraft carriers became ubiquitous was because aircraft are the most effective means of deploying weaponry. That hasn’t changed. They can also project power inland as well as engaging surface and sub surface craft.
Nothing about warfare technology has been drastically altered enough for submarines to be the primary fighting force. They have a job that they’re damn good at, but aircraft are more multirole and far quicker.