You have to add the 'jsx-runtime' to your ESLint config file – for the new flat structure, your eslint.config.js file should be configured as follows:
// Other imports
pluginReact from "eslint-plugin-react";
export default [
// (...)
pluginReact.configs.flat['jsx-runtime'],
// (...)
];