When a compound noun that is two words has a prefix or suffix, hyphenate the prefix to the first word or the suffix to the last word and leave the compound noun as separate words.
...pre-high school days for him...
...post-Revolutionary War period...
...real estate-like transaction...
...social security-wide reform...
Happy punctuating!
Margie