I think I see the problem. I'm on Ubuntu 22.04 and the tablet/pen is not detected in the Settings menu (which I think uses libwacom). However it does work in apps like GIMP and Blender, I think cause they have native support. I tried to update libwacom myself, but the libraries don't work on newer versions of Ubuntu, so I might be stuck. I'm using a Huion Q11K.