Brazil's former president Jair Bolsonaro is among more than 30 people facing charges of allegedly attempting a coup after his electoral defeat in 2022.