Display in a static text all the names of the people in the household

Hello,

Sorry if this query has already been done, but I have not found the answer.
I want to display in a static text all the names of the people in the household who have registered in a list query.
Could you guide me to make the syntax for a number “n” of persons?

Thanks.

What is the use case of this?