For each file/folder activity can't get the subfolders if the it has # symbol in subfolders path

I am trying to get all subfolders in one master folder and it has # in the name. But the O365 for each file/folder activity is giving an error:

For Each File/Folder: Code: accessDenied
Message: The sharing link no longer exists, or you do not have permission to access it.
Inner error:
request-id: <req_id>
client-request-id: <request_id>

Find Files and Folders activity works for the same path. Removing # from folder name and path in Subfolders works fine so it’s not an access issue but the # symbol is causing an issue.