In Unity 2022, you can use the Search tool to locate all missing script components in the scene.
However, the built-in search function cannot identify missing script components in Prefabs within the project. If you have this requirement, you can try the tool I developed:
github.com/snoopyuj/DeleteMissingScripts
See more: medium.com/@bwaynesu