Removing user's accessprofile containing a string in name using workflow

In that case try this, after Get Identity, setup HTTp request action to invoke v3-search api as request url. In the request body have something like below. Loop over the body response access profile name and within the loop perform Manage Access
Request Body

{
    "indices":[
        "identities"
    ],
    "query": {
    "query" : "attributes.email:\"{{$.getIdentity.attributes.email}}\"",
    "innerHit": {
            "type": "access",
            "query": "(type:ACCESS_PROFILE) AND displayName:\"*Privileged Access\""
        }
    },
    "queryResultFilter": {
      "includes": ["*"]
  }
}