The other day I had an agent write a parser for a niche query language which I will not name. There are a few open source implementations of this language on github, but none of them are in my target language and none of them are PEGs. The agent wrote a near perfect implementation of this query language in a PEG. I know that it looked at the implementations that were on github, because I told it to, yet the result is nothing like them. It just used them as a reference. Would and should this be a licensing issue (if they weren't MIT)?
No one knows until a law about it is written.
You could postulate based on judicial rulings but unless those are binding you are effectively hypothesizing.
It would be nice to give them some kind of attribution in the readme or something since you know which projects you referenced