I just saw a news article about changes to Section 174 of the tax code. It was passed in 2017 but didn't go into effect until 2022. It greatly reduces the tax deduction for R&D, and at least according to the article, is the real cause of the big tech layoffs the last few years.
The article I saw is: https://qz.com/tech-layoffs-tax-code-trump-section-174-microsoft-meta-1851783502