This is a Nintendo Switch 2 Joy-Con Grip. It works better with magnets, but is also fine without. 4 magnets (8x3mm) can be pressed into the sides.
eBay