https://man.archlinux.org/man/core/sed/sed.1.en
\cregexpc Match lines matching the regular expression regexp. The c may be any character
Vagyis:
sed -i "\\,$f,d" file
De ehhez is kell tudnod mondani legalább 1 karaktert ami nem lehet a regexben, amit separátorként használsz.