Pedantry. Legally speaking, copyright infringement covers expression, not the ideas themselves.
Anticipatory counter argument: Ok. So you can get an LLM to regurgitate Harry Potter word for word, with suitable prompts. In my mind, the question becomes one of agency. Is the LLM responsible, or is the person who prompted for word-by-word regurgitation responsible? And just how much revenue has been lost by people prompting LLMs to regurgitate Harry Potter word-for-word, for goodness sake? Would it not be entirely reasonable to award zero dollars in damages given that it's certain that no sensible person has ever done this in order to avoid buying a copy of Harry Potter?