Working with LLM-generated code is like working through dense bush, a forest. It grows "organically", thick, hostile to humans. Full of surprises, contrived and contorted in places.
It can be set on fire and destroyed quite readily.
It can also be, with significant work and sharp blades, be tamed into a garden. But if you want a garden, it might be easier to start from scratch?