They’ve always way overcharged on RAM upgrades, except for when the M4 came out and they bumped all base RAM to 16GB for free, making the M4 Macs a slightly better than average value when comparing to prior Macs.
I don’t think the RAM upgrade cost has recently gone up either, but I could be wrong.