Hello @Lucas Matheus Rodrigues Brum,
I was able to reproduce this issue when I have only provided files.read permission in the token.
But as per the documentation, while the /sharedWithMe request will succeed with Files.Read or Files.ReadWrite permissions, some properties may be missing. Additionally, without one of the All permissions, shared items returned from this API will not be accessible.
So after giving the necessary permission as instructed in the document, I was able to get the results:
Please check and validate the same.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.