Em-dashes are a bit too conversational for formal prose, so they have always been looked down on aside from usage by AI.