The built-in Digital Wellbeing & Parental controls works. I have it on my Android 11 device, haven't tested on anything newer (it's not on my Graphene OS device based on the most recent Android though).
Settings > Digital Wellbeing & Parental controls > Dashboard > click the timer icon next to an app and set a limit
If you want something outside of the Google ecosystem (e.g. you're running GrapheneOS), the following should work (untested):
Open TimeLimit - seems it supports multi-user, which is nice
usageDirect - display only, no way to set limits AFAICT
There are probably others, that was just a cursory check.