“agrep” for Android Terminal?
As commented by @Izzy, Termux has a wide repository of Linux packages, but agrep isn't among them so far. So you have to go for compiling the binary from source, or you may give this one a try. It's a static binary for aarch64 architecture.