To unlock games on Playstation 5, try to purchase them. If you are sharing games, go to Settings.> Users and Accounts > Other. First, click on Console Sharing and Offline Play and press Enable. After that, select Restore Licenses > Restore. Now the games should be unlocked.