Nearly six years after the COVID-19 pandemic led to a sharp rise in remote workers, many companies have implemented return-to-office mandates.