Hey @galkowskit!
There are several ways to do so, however, the easiest way to do so would be an array of actors. Here is a great non-Epic affiliated tutorial series that goes over one example of how to pull this off:
RTS Marquee Selection (Select Units by Dragging a Rectangle) in Unreal Engine 5
I hope the above solution works for you!