These are all names of men. Each man was the father or ancestor of the next man in the list. If your language has a specific way to mark this kind of list, you can use it here. (See: rc://en/ta/man/translate/translate-names)
If your readers will need to see that Noah was the son of Lamech and your language has a way to mark it, you should use it here.
Some versions, including the ULB and UDB, include “The sons of” in order to make it clear that Shem, Ham, and Japheth were brothers to each other and sons of Noah. Otherwise, the reader would assume that each person represented one generation farther away from Noah, their ancestor.