You bought (according to your signature) an M4 Pro MacBook Pro, 24 GB RAM / 512 GB Storage. That was $1999 when it was released a year ago.
*THE SAME MODEL* is still $1999. With zero upgrades. Someone can walk into an Apple Store and pay the exact same price you paid a year ago for the exact same machine.
What did change was the *BASE* model $1599 M4 MacBook Pro is now an M5 chip. No Pro on the chip. That M4 non-pro had 16 GB RAM base, and a 512 GB SSD. The new M5 still has the same 16 GB RAM base, still the 512 GB SSD.
There is no M5 Pro yet.
That said, memory and storage regularly increases. Especially in the base models. And it usually doubles. (The base iMac recently went from 8 GB to 16 GB base memory, finally. That's the computer industry. You weren't cheated. You got a full year of use.
Think of someone who bought an 8 GB iMac two days before they bumped it to 16 GB. *THAT* person has room to complain. You don't.
Yes, you could pay to upgrade the M5 (not-Pro) system to have 24 GB of RAM and a 1 TB SSD, and it would cost $100 less than your M4 Pro MacBook Pro. Just as it would have when it was an M4 chip.