This is only applicable to a very small subset of STEM academics and is definitely not the expected career outcome for a STEM PhD.
There are indeed people with CS PhDs at Google and Microsoft whose primary job involves publishing papers rather than building applications. But that's not the norm.