According to Scribbr:
There are two types of dash. The en dash is approximately the length
of the letter N, and the em dash the length of the letter M.
The shorter en dash (–) is used to mark ranges and with the meaning
“to” in phrases like “Dover–Calais crossing.”
The longer em dash (—) is used to separate extra information or mark a
break in a sentence.
The en dash is sometimes also used in the same way as an em dash,
especially in UK English; in this case, it takes a space on either
side.
Make sure not to confuse dashes with shorter hyphens (-), which are
used to combine words (as in well-behaved or long-running). A hyphen
should not be used in place of a dash.
The Punctuation Guide agrees that hyphens and en-dashes are different. It also notes, however, that: "The typical computer keyboard lacks a dedicated key for the en dash, though most word processors provide a means for its insertion." This may help explain the emerging trend of treating an en-dash and a hyphen and a minus sign as identical.
In my experience, however, en-dash, hyphens, and minus signs are all routinely denoted by the same symbol in typing on a computer, and are used interchangeably. The word "dash", unspecified, usually refers to an en-dash or a hyphen.
In contrast, the longer em-dash is used for pauses longer than a comma, in the middle of a sentence, in a manner similar to ". . ." or semi-colon.
For example, I have a hyphenated surname: "Oh-Willeke" but lots of people you speak to a airports and banks and spelling my name while on a telephone call or in a courtroom do not know what the word "hyphen" means, and often confuse it with the word apostrophe (as in Oh'Willeke), since the O sound is often followed by an apostrophe in proper names. (My name is a hyphenation of a Korean name and a German name, rather than an Irish name.) So, in order to deal with this lack of vocabulary, I will frequently spell out my surname orally as: O, H, dash, capital W, I, L, L, E, K, E.
To speakers of British English, I would say: O, H, dash, capital W, I, double L, E, K, E.
The first time I ever heard anyone distinguish between a hyphen and an en-dash was when I looked up the references in this post today when I am fifty-two years old, I am a native English speaker, and I have been typing regularly since I was 11 years old.
Wikipedia explores these symbols and also the "horizontal bar" and the "figure dash" and provides keyboard shortcuts and unicode values for them. It states:
The dash is a punctuation mark consisting of a long horizontal line.
It is similar in appearance to the hyphen but is longer and sometimes
higher from the baseline. The most common versions are the en dash –,
generally longer than the hyphen but shorter than the minus sign; the
em dash —, longer than either the en dash or the minus sign; and the
horizontal bar ―, whose length varies across typefaces but tends to be
between those of the en and em dashes.