Same here. Unfortunately iOS does not have that functionality, so I am still looking for a decent BT keyboard with programmable keyboard.
https://pqrs.org/osx/karabiner/
Between karabiner and hammerspoon you can 'program' almost any keyboard.
edit: misread the 'iOS' but will keep this here for mac users