Question: what episode did michael come back?
Answer: After delivering a bombshell of a cliffhanger in the Season 4 finale where Michael was resurrected in the final seconds, Jane the Virgin started its fifth and final season by explaining the twist. No, it is not Michael's twin (that telenovela trope already was used for Petra and her twin sister).