This works fine on Linux (Debian):
sed -e 's,^[ \t]*psd\(.*\)\;,,' 
On mac, I believe I have to use the -E flag, instead of -e:
sed -E 's,^[ \t]*psd\(.*\)\;,,'
but the regexp does not match, and hence does not remove the lines I want.
Any tips on how to solve this?
Sample input:
apa
bepa
    psd(cepa);
depa psd(epa);
  psd(fepa gepa hepa);
For that input, the expected output is:
apa
bepa
depa psd(epa);