In standard Arabic, and for most languages using the Arabic script, U+0645  ARABIC LETTER MEEM (and all related shapes) is what is seen on the left below. However, some languages have the isolate and final glyphs shorter as is seen on the right below. Sindhi is a well known language where the glyph variants on the right are expected. The variants on the right are also used in some languages in Africa.