Sant Cugat del Valles is a municipality of 92,977 people (2020). It is in the province of Barcelona in the autonomous community of Catalonia in Spain .