Pfizer, a company that has contributed probably trillions of dollars to global GDP over the past 6 months, is massively underperforming the stock market when you compare pre-pandemic to now [1]. The stock price in theory should price in all the future cash flows from the vaccine. What is your basis that the pharma companies are making tons of money on these vaccines?
It isn't like the vaccines are pure profit. The pharma companies have to develop them, they have to produce them, they have to distribute them, and if they charge too much they get into massive political trouble. It seems like it is basically a giant marketing effort for pharma companies where everybody in the world is benefiting.
1: For example, from Feb 1st, 20 to today, Pfizer is up 10% and the Vanguard total stock index VTI is up 35%