It still is relatively better to do pharma in PR than many other industries in PR, since it has an established workforce and a bunch of facilities, and there are PR-specific tax breaks under IRC 933 (just no longer 936). There's established pharma, and sometimes line extensions; not sure if anyone would put a new pharma startup here.
Microsoft lost their tax case so they're GTFO after >10 years, though; that probably also discourages similar IP-embodied manufacturing in pharma.