My thoughts the last several months about chip stocks has been to find companies within the US that are going to be able to manufacture. Originally I was thinking Intel, but kinda forgot about this sector and never jumped into anything or did much research.
Seems to me that both sides of the aisle realize that we need to reduce our dependency on goods from Taiwan, chips especially. With geopolitical tensions on the rise we may have supply lines cut. Politicians may be planning to LET supply lines get cut if it means avoiding a war with China over Taiwan. Nobody really knows what will happen quite yet. If I were going to play around in that sector I'd be looking for companies that can produce locally. Then plan on waiting a couple years.
I hadn't heard of SAP until reading your post. Again, I'll note that I did little to know research. I glanced at their website, saw the letters AI, and noped outta there. Looks like a relatively successful SalesForce competitor, but not an industry I understand fully. Could work out. Very few are going to get you rich tomorrow.
The lesson you're probably going to get is that it pays to hold on during the rough periods. It can be difficult to determine sometimes what is a bad stock vs just a bad time period for the stock. Pretty sure we've all had a ticker we sold at a low only to see we could have been in profit a few months or years later.