To my knowledge Pfizer didn't really invest anything, it was the German population who financed Biontech through funds paid with taxes: the lab infrastructure pre-covid (through funded cancer research), the vaccine trials, and mass production (both directly and through pre-purchases before the vaccine existed).