Is there any way to install homebrew on iOS (jailbroken)
No, this isn't possible.

Homebrew is designed for use on macOS systems. It is not intended for use on iOS, and the packages it downloads will not run on an iOS system. It cannot compile packages for iOS either, as the Xcode toolchain is not available for iOS.

Attempting to install Homebrew will be futile, and may render your device unusable.