Rough idle on a newer bike like yours usually points to a few specific culprits. Since you've already tackled the obvious stuff (injectors, plugs), the next thing to check is the idle speed adjustment itself - most CB500s have an idle screw you can turn, though exact location depends on your model year. You might also have an air leak somewhere, which throws off the fuel-air ratio. Common spots are around the intake manifold gaskets, carb boots (if applicable), or vacuum hoses. If any of those are cracked or loose, it'll cause that hunting idle you're describing.
The other likely suspect is the Idle Air Control valve or similar component - on modern Hondas this is often part of the fuel injection system and can get gunked up even after cleaning injectors. There's also a chance your ECU needs a relearn procedure after you messed with the plugs and injectors. Some bikes need to be ridden a certain way to recalibrate. That said, if you're not totally confident poking around the fuel system yourself, the dealer might be worth it just to rule out warranty issues - any internal fuel system problems on a 2024 should still be covered.
If you want to try the idle screw first, grab a tach app or borrow one, get the bike warm, and try adjusting it to Honda's spec (usually around 1100-1200 RPM). Just turn it slow and small increments. If that doesn't stick or the idle's still all over the place, you're probably looking at either that air leak hunt or a dealer visit.