KDevelop creates a build directory named "build" in the project root directory by default. This directory is shown in Projects tool view and files within are present in Quick Open file list, unless the user manually adds a matching Exclude Project Filter. This directory is normally not useful in the Projects tool view and in the Quick Open file list. Therefore it is desirable to filter it out by default.
For example, one more type of Targets can be added in addition to the existing "Files", "Folders", "Files and Folders": "Build Directory". There can be one default pattern of this new type: *build*. The exact meaning of "Build directory" can be defined by classes derived from IProjectFileManager. For example, CMakeManager could check if the directory contains a CMakeCache.txt file.
See also a few comments that discuss this feature at https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/176#note_120698.