Welcome to Reef2Reef!
When starting a tank, it's absolute war in there, organisms take off, die off and bloom.
These look like brown flatworms, googlable, and I don't think they're bad. When I started my aquarium over 3 years ago and was maybe a couple months deep into cycling, I actually ran into these same brown flatworms. I didn't actively seek out their demise but over time their populations just dwindled and dwindled until they were all gone. As your system matures, more organisms that will compete with these for survival will likely be their end and manually removing what you can is probably going to speed it up a little.
I would say buy a nice Zoanthid covered live rock that's a good size to introduce a litany of biodiversity to streamline that maturing process and introduce competition for them, but I would also warn that it's each to their own and Reef aquariums are rather sterile in the first year so you could take a more scientific approach and introduce exactly what you want to the aquarium and slowly build that biodiversity the exact way you want, or you can go a more simplified way and let the war play out. I would personally choose war but yeah it's each to their own. I probably wouldn't use chemical flatworm kilers because who knows what these things will pollute into the water if they all die simultaniously. Best to just let it run it's course IMO. But I would be interested to also hear what others think. If it gives you any peace of mind at all, I did have thousands of these for maybe a month before the pops started to dissipate and eventually dissapear altogether, and that was just with time.