You are correct https://www.investmentmonitor.ai/insights/chinas-fdi-decline... shows that FDI is falling in the last 3 years. The increase is with double counting, from Hong Kong investment being counted as FDI.
China’s Foreign Investment Data Distorted by Hong Kong Flows https://www.bloomberg.com/news/articles/2022-09-05/china-rou...