Right Joycon buttons aren’t working
Nintendo Switch Joycons have been notoriously inconsistent in their quality. Many players, including myself, have experienced Joycon drift. While I haven't heard of buttons failing to work I would believe it.
There are guides online of how to send your Joycons back to Nintendo for repair, or you could look at their repair page directly, which is an option if you prefer to use Joycons.
I, however, bought a compatible controller for my Switch and haven't had any issues with that yet. Because I both prefer the feel of the controller, and it seems more durable I would recommend purchasing that instead.