The R&D tax credit change actually took effect in 2022, and one of the few good things Trump's BBB did was reverse it
Please correct if I'm wrong about this. I only know what I read, which is hard to trust anymore.
If you want to do R&D overseas, best to set up an overseas company.