Microsoft themselves have a legal program where they claim they'll support people using AI if anyone else comes forward and say that they own copyright on the AI-user's generated code: https://blogs.microsoft.com/on-the-issues/2023/09/07/copilot...
So it's going to be pretty hard for them to go against OP in front of a judge
That extends to claims resulting from otherwise innocent usage of AI tools, not deliberately reverse engineering proprietary software and publishing it under a different license.