Flexport won an $8 billion valuation in 2022 after a $935 million funding round that included Shopify as a key investor.