For Exchange online mailbox:
The Exchange online mailbox data cannot be recovered now. For Exchange on-premises server, this mailbox show as Office 365 due to this mailbox has been migrated to Exchange online.
In this case, I would suggest you delete this AD account and create a new one directly.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.