Tech-focused The Real Brokerage agreed to buy Re/Max in a deal valued at around $550 million.