Aaahahah people tend to forget that GPL exists. If they use your software to build another, then you can sue and make all their software opensource. Also, you dont have to use github where your source is easily pray of LLM. You can host your own.
I don't think this is as clear as you say it is. If a person "regenerates" GPL code from memory, it will still be a copyright violation. LLMs can't own copyright on their own, so a person must be responsible for the result. So it should be a violation. GPL should help (if you actually sue).