I did the same thing! I took a three-month coding bootcamp because I wanted to become a Backend Developer. I did like coding, but I didn't have the motivation to ever do it outside of the bootcamp.
But with writing, I love it. I find myself composing articles in my head before I go to sleep. I'll instinctively pick up my laptop when I'm bored. The words flow much faster than coding did for me.
I wanted to prove I was smart through coding, but that cost me (literally) a lot with no return in satisfaction.