Problem/Motivation
Upgrading to Drpal 10
Apache: Drupal: 9.5.4. PHP 8.1.12
When running upgrade status I got the Error message:
Could not detect the location of "drupal/core", please open an issue at 
            
              https://www.drupal.org/project/issues/upgrade_status →
            . Scanning is not possible until this is resolved. 
But module shows all Modules
Steps to reproduce
I install the module using composer:
Composer require drupal/upgade_status
compoer.json:
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal 9 projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "
            
              https://www.drupal.org/project/drupal →
            ",
    "support": {
        "docs": "
            
              https://www.drupal.org/docs/user_guide/en/index.html →
            ",
        "chat": "
            
              https://www.drupal.org/node/314178 →
            "
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^1.9",
        "defuse/php-encryption": "^2.3",
        "drupal/admin_toolbar": "^3.3",
        "drupal/advban": "^1.4",
        "drupal/agreement": "^3.0@alpha",
        "drupal/backup_migrate": "^5.0",
        "drupal/bartik": "1.0",
        "drupal/captcha": "^1.2",
        "drupal/content_access": "1.x-dev",
        "drupal/core-composer-scaffold": "^9.4",
        "drupal/core-project-message": "^9.4",
        "drupal/core-recommended": "^9.4",
        "drupal/disable_messages": "^2.1",
        "drupal/ds": "^3.15",
        "drupal/editor_advanced_link": "2.0",
        "drupal/entity": "1.3",
        "drupal/entity_browser": "2.6",
        "drupal/entity_usage": "4.x-dev",
        "drupal/feeds": "3.x-dev",
        "drupal/feeds_ex": "1.x-dev",
        "drupal/feeds_tamper": "2.x-dev",
        "drupal/gdoc_field": "^1.3",
        "drupal/honeypot": "^2.1",
        "drupal/language_switcher_langcode_block": "^2.1",
        "drupal/language_switcher_menu": "1.0.0-beta1",
        "drupal/languageicons": "1.0.0-beta3",
        "drupal/paragraphs": "1.13",
        "drupal/redirect_after_login": "^2.7",
        "drupal/seckit": "2.0",
        "drupal/structure_sync": "^2.0",
        "drupal/terms_of_use": "^2.2",
        "drupal/textarea_widget_for_text": "^1.2",
        "drupal/upgrade_status": "^3.18",
        "drupal/view_mode_switch": "^2.0",
        "drupal/views_bulk_operations": "^4.1",
        "drupal/views_data_export": "^1.1",
        "sainsburys/guzzle-oauth2-plugin": "^3.0",
        "symfony/var-dumper": "*"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true
        }
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            }
        },
        "installer-paths": {
            "web/core": [
                "type:drupal-core"
            ],
            "web/libraries/{$name}": [
                "type:drupal-library"
            ],
            "web/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "web/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "web/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "web/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "web/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "web/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "drupal-core-project-message": {
            "include-keys": [
                "homepage",
                "support"
            ],
            "post-create-project-cmd-message": [
                "                                                         ",
                "  Congratulations, you’ve installed the Drupal codebase  ",
                "  from the drupal/recommended-project template!          ",
                "                                                         ",
                "",
                "Next steps:",
                "  * Install the site: 
            
              https://www.drupal.org/docs/8/install →
            ",
                "  * Read the user guide: 
            
              https://www.drupal.org/docs/user_guide/en/index.html →
            ",
                "  * Get support: 
            
              https://www.drupal.org/support →
            ",
                "  * Get involved with the Drupal community:",
                "      
            
              https://www.drupal.org/getting-involved →
            ",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        }