A “soft” dry fast (which is the kind we’re talking about in this article) can include brushing your teeth, taking a shower, and washing your face. A “hard” dry fast means zero contact with water.
You can brush your teeth while dry fasting if you are “soft” dry fasting.