Any HS filter should do, given that filter is tuned for the frequenzy you decide.
Anyway, if the rise and fall time of the square wave is very short, then it will represent a high freq and it will most likely make a short spike at the output of your HS filter.
The value of R and C must be tailored to the frequency of the square wave. Note the feed-through of the square-wave edges.
btw-the FFT of the two waveforms shown below are not very different, except at low frequencies, where the differentiator circuit suppresses them. If the goal is to do spectral processing, I'm not sure the square-wave effects it.