There is a a form of relaxation/ flexibility training that my wife is into called Yuru Yuru Taiso. The movement you are describing is one its central tenets and I have come to do that as a real fundamental way to remove tension.
I'm glad you know that. How did you become aware of that movement...