As a human who uses emdash, I gotta say it's peak AI to use emdash but put spaces around it.
@ajorg Maybe because it "learned" from global sources - British English tends to use an en-dash surrounded by spaces.