Since then, consoles moved away from the exotic POWER/cell/etc custom hardware towards commodity x86 hardware based on integrated x86 APUs and haven't really been sold at a loss outside of maybe a small window at launch. PS5 moved into hardware profitability about 9 months after launch, microsoft said that the xbox series is still sold at a loss but I don't believe them because the xbox shouldn't be monumentally more expensive to build than the PS5. This is in the context of them trying to argue during the apple app store lawsuit that their lock-in on xbox store was different from the lock-in on the app store, so they have a financial incentive to make sure they "run a loss". It's either not much of a loss, or it's hollywood accounting and the money is going into their other pocket somewhere, like making the xbox division pay a parent holding company big licensing fees for on every console sold.
https://www.extremetech.com/gaming/325504-sony-finally-turns...
(again, I don't agree with the "finally" spin here, this article was roughly a year after launch and they may have been turning a profit for a while before disclosing it... the consoles themselves become profitable pretty quickly.)
However, this mindset that "consoles are sold at an initial loss" still persists. They're not, Sony has said they're selling the PS5 at a profit. Previous generations also reached profitability pretty quickly after launch as well. It's not 2005 anymore and the ps3 is gone. Slapping some GDDR5/GDDR6 on a semi-custom APU is dirt cheap.
Even during the launch window when they do lose money it's much smaller, nobody is losing a couple hundred dollars on each console anymore like on the PS3, that model is gone.