Is it permissible after divorce to have mutah with the x husband . Or does the wife have to have had a sexual relation with another man before, same as in remarrying an ex.

As long as there were no three divorces she can remarry her ex husband muta or permanent.