You've definitely used SharedPreferences to store small or simple data sets.
But SharedPreferences' API has a series of downsides and luckily the Jetpack DataStore library aims at addressing those issues.
So if you're currently using SharedPreferences, consider migrating to DataStore instead.
This simple demo app is part of a Blog posts series that helps you do the migration.
Jetpack DataStore is the new SharedPreferences (Preferences DataStore)
Persisting Typed Objects with DataStore (Proto DataStore)