Matlis’ semi-regularity in trivial ring extensions of integral domains