all you have to do is run it through an "AI" and then what comes out is definitely not a derivative work and you can legally use it however you like. Microsoft is very confident in this; just see Copilot.
[0] https://www.theverge.com/2022/2/21/22944335/us-copyright-off...