Regularity of partial differential operators in ultradifferentiable spaces and Wigner type transforms