YOU SAID:
hello like my friends ex
INTO JAPANESE
こんにちは私の友達のように元
BACK INTO ENGLISH
Hello ex like my friend
INTO JAPANESE
こんにちは元私の友人のように
BACK INTO ENGLISH
Hello like my ex-friend
INTO JAPANESE
私の元友達のようにこんにちは
BACK INTO ENGLISH
Hello like my ex-friend
That didn't even make that much sense in English.