Can I install bluez & bluetoothctl on a rpi that has hassio as OS

I run HassOS, but I tend to agree with @flamingm0e. HassOS has bluetooth support, but it might be easier to do what you want by installing Raspbian+docker or a python venv. The other options to look at would be to look at a custom component.