- Order and another grids with pagination
You need just adjust regexp and logic but the idea is the same. Magento 2 Core pagination is sucks.
You also need copy Admin UI template html files to you admin theme folder: https://github.com/Genaker/DbPerformanceFix/blob/main/app/design/adminhtml/Magento/backend/Magento_Ui/web/templates/grid/paging-total.html