Sub Tasks Appear Outside of Milestone AND in Milestone

I may not know all the conext either but you could…

D) scrap sections and all those rules and just Group by your Stage field, following this, carefully: