The common term for this is lifestyle inflation. As you make more money your “needs” keep increasing. It’s incredibly challenging to reserve this trend but very easy to follow it.
I think the best way to prevent this is, whenever you get a raise, open a new bank account and have the difference direct deposited into it. That way, the main bank account that you work with regularly, always sees the same amount deposited.