that definitely could be sensory processing, sometimes it manifests and does weird things like that.
however, to me, that sounds a whole heck of a lot like OCB/OCD. when my obsessive compulsive behaviors got pretty bad, i was doing that kind of thing you mentioned. for example, i would tic in one leg by tightening my muscles, then i’d have to do in the other leg to make it feel right.
if you don’t get the feeling of “if i don’t do this…”, then it could be a range of other disorders. if you have anxiety, autism, bpd, and/or tourettes/tics, compulsive behavior is common with those.