What is a “good” age to buy a gaming console for your child?

That seems like a “you” call, OP.

IMO it depends on your kid. Do they have lots of impulse control issues and struggle to form good habits? Probably better to not get them a dedicated distraction device.