Sorry, I thought you just had issue with Search query. On checking your Workflow, i believe for your usecase in Get Access step you should select Access Selection Method as “By Identity”.
This will then return the access the Identity has and you can use those in Manage Access step to Remove access.