What error does the yellow node give you?
Solve that first.
Then take the node String from Object to convert the family names in the bottom part of your picture to a string (text) then match that with your 4th sublist with the Contains node and a Boolean Mask node.
Then make a new list that contains coordinates and family name.
Then separate them out using a code block calling indexes like you did already
Then feed the result to the FamilyInstance.ByCurve node like this.