Excel is a good solution
There would be at least a few hundred thousand names on the list. Easily handled by Excel.
Pay a clerk full time to concatenate them together.
It does not matter if they make mistakes because the data is ultimately useless anyway.
Much better than spending umpteen million quid on and IT project that does the same thing.