It is permissible to clean your teeth with toothpaste, but if its taste or foam reaches the throat, it can break the fast. Therefore, it is better to use a simple miswak or toothbrush while fasting.