Amazon says workers must be in the office. The UK government disagrees. Who is right?

Amazon is ordering its staff back to the office five days a week, but the UK government is promoting flexible working.
Source: US News and Business Report -usnewsandbusinessreport.com- BBC Business
Amazon says workers must be in the office. The UK government disagrees. Who is right?