Eh? Of your nine, I’d only consider the red ones “worms”
1: Sponges
2: Coelenterates (better listed as Cnidaria and Ctenophora separately )
3: Flatworms
4: Roundworms
5: Segmented worms
6: Arthropods
7: Echinoderms
8: Molluscs
9: Chordates
Which other phyla do you consider to be worms?
FYI, my working definition of “worm” here is “a mostly naked-skinned animal much longer than it is high or wide, with no limbs to speak of”. Other phyla might have individual species - even just particular instars - that meet that definition: Teredo, or sea cucumbers, or maggots