I would knit all the time and alternate with coding while working remotely. I found that doing something tactile was very helpful for giving my mind a break while working through problems or waiting for things to build/compile. Now I’m in office and kind of embarrassed to bring a knitting project.
I cook to fill the same gap, having to do something with your hands definitely helps me.