They are not photosynthesizing plants, they are parasites of fungi! Pretty cool looking in person, almost translucent. One of my hikes this year had a bunch of clumps of these on the trail.
They are still flowers though. It's probably not entirely wrong to think of them as related to other flowers, I didn't know anything about them until I took the picture.