Corporations don’t exist to recoup costs. They exist to make lots of money. That’s why they spend billions coming up with drugs like this and getting them approved.
It’s easy to take the short view of the system (“we need to force them to not make nearly as much as they can on this patent because people are dying”) rather than the long view (“we want companies to spend billions to cure diseases and that means having them make tens or hundreds of billions even though people unnecessarily die until the patent expires because the alternative is no such medicines at all”).
But them’s the options.