PS5 was selling at a marginal(?) loss when it launched, at least the disc version IIRC. Same goes for PS4, PS3 & the "X boxes" if I'm not wrong.consoles haven't been sold at a loss since the PS360 days.
The prices go down as they use the latest nodes so they might eventually turn a profit with the second or third revision.