I worked with a guy who left for more money, found out the grass wasn’t greener, and came crawling back. Then did it again. For some reason they hired him back a second time. When he quit the 3rd time I think that was the final bridge burned. I asked him about it and he said money was his singular metric for choosing a job, he was always looking, and would never stop.
Yeah, I left a job where I loved the team and didn't mind the leadership too much for a 45% raise. Got lucky and the job I landed in was an even better fit for me.
I remember a guy at a previous job doing something similar - left for a React job (despite being a PHP developer), then came back like 6 months later because he couldn't get his head around React, then left again like 6 months later. Pretty sure it was about money because the PHP job was pretty relaxed and had some good perks.