I'm pregnant. My dog rolled in cat feces and then scratched himself causing hair to fly everywhere. Can I catch toxoplasmosis by inhaling hair/dust?

Extremely unlikely . That sounds like an incredibly unlikely wait to catch toxoplasmosis. Simply wash your hands and it won't be an issue. Toxoplasmosis is transmitted by ingestion not inhalation.