this kind of responsibility should be learned from home at first, it is necessary inside of our home to show proper handling of finances even when they are young, not to mature immediately when it comes to money, but so that when their children grow up they can adopt the things they see before from their parents or the elderly. Indeed, not everything is learned in school, sometimes it's easier to learn when you have seen any experiences as a basis. Just like me, as the eldest, I teach my siblings how to properly budget their money, I start by giving them monthly allowances and they take care of how they fit it in a month, in that way that when they were young they will learn to handle their money and expenses.
Teaching your kid how money is earned and how hard it is, could be the number one thing that would stop them from being a spoiled person. If you just buy them things, even if you fail to buy them something, all you do is either show them that you earn enough to buy something, and then not earn enough, or not wanting to buy something else.
However, if you make them work for it, even if something as simple as clean up your room, clean the dishes, mop the floors of their room, like something not so serious, teach them both discipline and also how money is earned, and then tell them buy whatever they want with the money they earned, they will realize how valuable money is. They will make sure that they understand the concept better after that.