Take a look at an incredibly useful Extension with Thomthom’s Selection Toys.
https://extensions.sketchup.com/en/content/selection-toys
Selection Toys makes it easy to toggle active selection by type, layer, materials, and more! This is an extension that quickly becomes a “must have” for SketchUp users of any level.
source