Baking soda works, but it's not a miracle if the smell is already really set in. What I'd do is combine baking soda with hydrogen peroxide - make a paste and rub it really well into the armpit area, let it sit for like half an hour or more, and then wash normally. The hydrogen peroxide is what actually breaks down that yellowish stain that builds up.
Now, here's something people sometimes overlook: if you leave wet clothes sitting around without hanging them up or drying them quickly, the smell gets even worse and way harder to get out. So it's not just about cleaning, it's also about not letting that moisture create more mildew. Take them out of the machine right away and hang them up.
There's another trick worth trying if the first one doesn't work: soak the armpit area in straight white vinegar (undiluted) for a few hours, then put baking soda on top while it's still wet, and let it dry in the sun if you can. The sun helps disinfect and lighten it. But honestly, after three months of trying this stuff, if none of these things work, the fabric might actually be damaged and it might be worth accepting that those t-shirts just won't be like new anymore.