It's not "my model." If someone paraphrases a poem, and publishes that paraphrase, the original author will not be able to sue. (Or rather, they can sue, but will almost certainly lose.) There is a body of legal precedent for each category of work you can imagine, and each has come to have its own criteria for what the threshold is for being derivative vs a unique re-expression; but I am confident from how that has played out and from the fact that it is well accepted that code tends to be comprised of only so many patterns, that a codebase that is reverse engineered based on prompting alone will not be considered a derivative work.
It's obviously an opinion. But I'm confident enough in it, as are, say, Lovable and such companies, that I/they are willing to concretely operate on the hunch that that is how it will play out in court if ever the hand was forced.