Hello,
Hope the information in the link below could be helpful to you.
Microsoft Safety Scanner showing infected files but does not remove - Microsoft Community
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.