I built an app like that myself using the Screen Time API, and it already works just the way you want it to. iOS itself displays the list of apps. The app only receives encrypted identifiers and never knows which apps you’ve selected. Even to display the icon and name, there’s a component from Apple that shows both on the screen without revealing them to the app. This requires a special authorization from Apple, which not every developer receives.