I'm sorry you're feeling this way, try not to be hard on yourself. View it as an affirmation that sobriety is the better way for you.
This can wind up being a very significant piece of your own sobriety foundation if you embrace it as a lesson and a piece of 'evidence' about what is really important to you.
You're not a failure, you're not bad, you're not wrong, you're not shameful.... you're a human being and you've succumbed to temptation and you have seen the error and you've owned up to it.
Now, go forward with a resolve to let it lead you toward an ever-better life.