This is a tough one but I think your answer would obviously be geometry nodes, I don't gave access to a computer but if I remeber well there's a text node and you can inpu a string if you manage to get an array(dictionary) out of your file with all the names you can then with the index of your scatter point get the corresponding entry of your array. This is the general idea of I'd do it but I may mix element from different software :x I don't know if you can for each on geometry nodes.
An other option would be to create a python script and chat gpt may help you with that.
Good luck !