pagination with numbers for WP_User_Query

I have pagination with next/previous links but I also would like to show numbers so the user can click on 2, 3, 4 etc. Pagination seems more tricky with WP_User_Query as there isn’t any default WordPress pagination for this as far as I know. The below works correctly as far as I can tell for the next and previous links.