Like this -
I would be surprised if anyone makes a part with long legs anymore.
Here are 400 TO-92 package Hall sensors you can look through. You would have to check the datasheets to see if anyone makes a long leg TO-92 package.
https://www.digikey.com.au/products/en/sensors-transducers/magnetic-sensors-switches-solid-state/565?k=Hall+sensor&k=&pkeyword=Hall+sensor&sv=0&pv1291=68&pv1291=714&pv1291=8578&pv1291=10609&pv1291=2059&pv1291=2501&pv1291=9193&pv1291=9192&pv1291=9189&pv1291=9187&pv1291=9579&sf=1&FV=ffe00235&quantity=&ColumnSort=0&page=1&pageSize=25
You can cut the corners of my wider PCB to make it fit, but I think you will need the extended centre section because Hall sensors have short legs.