Wouldn’t a gas giant or brown dwarf that came too close to the star be ripped apart and it’s remains would become a gas cloud with varying density forming a ring around the star? Something of this nature seems a lot more likely than an alien megastructure.