If they are intended to exfoliate, they are a cosmetic.
If you are using the popular recipe which, I believe, is 1 part soap, 2 parts oil, and 3 parts sugar or salt, it is a cosmetic. Soap is only a soap if it is only intended to clean and if it is comprised primarily of soap. Scrub cubes are 1/6 soap, and so a cosmetic.