If every drug created with taxpayer dollars at government-funded research institutions was open-sourced, there would be a collapse in monopoly control of drug manufacturing and that would lower prices significantly.
The question is then, if corporations can no longer acquire IP rights to drugs created by taxpayer-funded research programs and transferred to their exclusive control (eg if Bayh-Dole is repealed in the USA), who will invest in clinical trial costs that need to be recouped via a period of inflated pricing?
The answer is government-funded, transparent, and statistically-robust clinical trials of drugs. Once a clinical trial is complete, private manufacturers can compete to produce the drugs at the lowest price by optimizing their manufacturing pipelines against a final product standard regulated by the FDA. If they want to run their own R & D divisions for drug development outside the taxpayer-financed university system to generate exclusive private patents, they certainly can - on their own dime. That’s an investment decision.
If you need to review why this government-linked, tightly regulated system is needed for drugs with clinical effects, just look up ‘patent medicine disasters of the early 20th century’.