Besides filtering a bill of materials created on a detail based on the object type, you can also use all the options available in the Search filter tool, including Model Role filtering, Material, Level,etc.
To set up your filter, you need to open a BOM on drawing template from ...\ProgramData\Autodesk\Advance Steel 2022\[INSTALLATION LANGUAGE EXTENSION]\Shared\Support\BOMTemplates\.
Access the BOM template settings dialog: In the Output tab BOM on drawing panel, click (List sorting and content).
In this window, you will notice that the Content tab has 3 options: