So far the only inline option I’ve found is this dimmable switch from Samotech. I haven’t tried one yet myself, and there’s mixed reviews online. For the lamps I have I only want an on-off switch though, not a dimmer.
Making due with plugging them into smart plugs for now, but an inline option would be much neater.