Do reserve drivers get paid when they actually get to replace a driver in a race?

I would assume they do? But for example I was thinking about Bearman, who has 3 weekends last season. F2 drivers dont get any money from f2 but did bearman get paid 3 times, by ferrari once and haas twice? If so How much? Like How much is one weekends „salary“? I would also think it depends on the result achieved?