If the subject is entirely dark, the tool will struggle. A black dress on a black background. A dark brown dog on a black backdrop. These cases have very low contrast and the model will guess wrong.
The fix is to reshoot against a lighter background. If you cannot reshoot, use the manual editor to draw around the subject with the lasso tool. It takes longer but produces a better result than the automatic process on low-contrast images.
For product photos where the subject is naturally dark, shooting against white is always better than shooting against black. You can always darken the background later if you want a dramatic look.