No, this is American style (long dash without spaces—like this) vs. European style (middle dash with spaces – like this).
I don't think it is useful to detect AI writing. I told my AI not to use em dashes.