Southeast Asia attracted $245 billion in foreign direct investment over the past year, with Singapore, Malaysia and Thailand capturing much of the inflow as multinational companies expand artificial intelligence, advanced manufacturing and supply chains outside China.