First thing that comes to mind is to use an active filter, to attenuate the harmonics of the 7-Hz square wave, & leave only the fundamental. A 3rd-order Butterworth low-pass filter might do the job nicely. You'd need an opamp, 3 capacitors, & 3 resistors, and would roll off the harmonics at the rate of about -18db/octave. The nice thing about active filters is that no inductor$ are required.
But first, there are some things we should know that could affect the filter design:
1. Does the ~7 Hz square wave change frequency, or is it a steady 7 Hz square wave? If it changes frequency, how much does it change?
2. Id phase shift be a problem?
3. How clean does the sine wave need to be? How much do you need to attenuate the square-wave's harmonics? Or, is there a total harmonic distortion specification?
4. What is the application, if you can mention it?