First of all, I would say it is absolutely normal to fall out of love with coding, and I wouldn't worry about it! If you're enjoying what you are doing, that's a good thing. Unlike the top comment, I don't think this has to be a sign of burning out (although it can be) - humans are complex beings. The world changes, and we change as well. What was enjoyable to you 15 years ago may not be as enjoyable now, and what yo…
How easy would you say it is to move back into a developer role if I say switch into product management role? I am scared I will be asked a lot about why I am switching back into coding and why I left it in the first place? I am scared of coming across as indecisive
If you switch roles and after a couple of years switch back again - no problem!
If you start to have a history of every six months to a year switching roles or moving companies, that can start to look bad, yes. But even that isn't a disaster that can't be overcome.
I wouldn't worry about it.