Sed task mark as failed

I’ve tried several times the sed task and always returns failed. Look through community existence messages and I think my commands are correct. The error state the “following” was not deleted in BSD_DELETE.txt

cd /home
sudo -s
cp BSD.txt BSD_DELETE.txt
cp BSD.txt BSD_REPLACE.txt
sed -i 's/\bfollowing\b//gI' BSD_DELETE.txt
sed -i 's/\bor\b/for/gI' BSD_REPLACE.txt

As i recall, that test asks you to delete lines containing the word, not just the word itself.
So that would be

sed '/following/d' BSD.txt > BSD_DELETE.txt