Hyphens are always used in compound numbers like twenty-one.
It would be text. However, if there are just numbers and a hypen or hyphens, then the hyphens could be a minus sign and you would get a formula if you put an equals sign before it.
Hyphens aren't generally used in numbers unless it is to designate a number with a negative value (i.e. -1). Some codes for computer software use hyphens (i.e. 1135-7674-8915-4637), but the codes themselves are not technically numbers; a key code is a value that just might happen to use numbers (of course, depending on who programmed the software; sometimes a programmer will introduce symbols and letters, both lower and upper case, into a key code's makeup).
Three words that commonly have hyphens are "mother-in-law," "well-being," and "twenty-one." Hyphens are often used to connect words in compound nouns, adjectives, or numbers for clarity.
path-oecologist
between the word
If you're using the phrase as an adjective (example "I hate the end-of-the-year audit!") then it will definitely need the hyphens. Otherwise, the hyphens are incorrect.
I advise against hyphens in that particular case.
I'm curious to find out if using non-beaking hyphens in all this situations would be correct or not.
Hyphens not needed
Yes it should be hyphenated.
Generally speaking, when writing out numbers in words between 21 and 99 in English, hyphens are used between the tens digit and units digit. This contrasts with a language such as Italian, where numbers between 21 and 99 are written as single words, without hyphens, for example, the word for the number 32 is trentadue.