Your subconscious wants you to stop a bad habit/addiction but you are torn between the thrill of said bad habit/addiction and knowing that it is bad.
To kill the snake, you must stop the bad habit/addiction.
The snake in this dream is a large problem with which the dreamer is struggling in real life.
Nothing
In this dream, the snake symbolizes an enemy or a threat. Certain types of snakes kill prey by constriction, preventing the victim from breathing. The dream illustrates the feeling of being embraced or squeezed by something dangerous.
The dreams expresses irritation with some problem or situation along with the confidence to overcome the difficulty.
A "red snake" would have different significance to different dreamers. The meaning of the dream depends on the tone and feeling of the dream.
The snake is representing someone that you know in the real world.
Snakes mean temptation, evil and deception - usually someone you don't trust etc. If you have caught the snake and placed it out of harms way then you have solved the issue with someone you dont trust or is deceptive towards you. Usually if you dream this then you are the bigger person and can control the situation.
From my own understanding, snake means someone doesnt like you.
See a psychologist.
In this particular dream, the snake probably is a symbol for something untrustworthy or repulsive. Seeing the ex-boyfriend with the snake, it suggests that those feelings are associated with him as well.
This sounds like a cathartic dream - a release of pent-up emotions leading to relief. The dream is relieving tensions by providing the experience of destroying an enemy/danger combined with the joy of victory.
If that is what you have dreamed, don't worry about it. I can assure you, DON'T WORRY! nothing should happen.