My nephew had the same issue...
His mom took away his potty chair and placed him back in diapers as only babies pee & poop in their pants she explained.
He was OK for a short while and then decided that he no longer wanted to be a baby and wear a diaper...
Has your son given you and / or your husband some sort of explanation (that a 3 1/2 year can give) as to why he poops his pants?
Maybe by removing something that he truly loves and reward him when his does right will get him back on track?
Come to think of it...my daughter (now 20)...I did have an issue with her pooping in the toilet...she did OK for a while and then she stopped...discovered that by her pooping in the potty spooked her, to see what came out of her scared her but it was different with a diaper as she did not see it. Finally she would poop in the potty but did not want to see it. That worked out fine. Until she started to use the regular toilet, flushing absolutely terrified her...she finally outgrew that as well.
Not saying this is the same with your son but just my personal experience.
~Zig