Unless you use Xposed Framework, which I don’t think has been updated to work with Android10, then there isn’t any way to get it back. Also the only reason I haven’t rooted the last 2 phones I’ve had.
Just a quick edit; May be able to use Magisk but I’ve no experience with it