Quick Puller attempt. Use an M3 nut and screw. Insert the nut in the space on the inside and partially thread the screw. Slide the puller over the pulley and align the screw with the motor shaft. Tighten the screw and the pulley should come off.
This is untested!
I haven't printed this but I would print on its side with the opening facing up. You can use supports or a brim. The finish quality of the side doesn't really matter. We are looking for added strength.