Custom user role doesn’t show up in admin

There is nothing else required, it (should) work just fine with the code you posted. I’ve given this a quick test to confirm it is working and it does. So I’m assuming there is another problem somewhere.