Do you feel bad when you punish your child?

Deena • I`m divorced after being married for three years. I have a wonderful little boy named Noah. I`m in a committed relationship and couldn`t be happier. 😍
My son is 3 1/2 for some reason he had been calling everyone stupid and spitting on people. When he does this I put him in time out and he cry's the entire time, I feel horrible for doing it, but I don't know what else to do. 😔 I don't want him calling people names or spitting on people but it breaks my heart when I have to punish him for something. Any advice from other moms would be helpful!