A country being charged less because they paid for R&D makes perfect sense to me if pricing is being done at an at-cost basis.
Also, put another way, those EU countries are probably getting charged less than the average costs to actually make the doses themselves. That's fine.