These two aliases currently just add --color=auto to the commands they alias, but the commands themselves return fgrep: warning: fgrep is obsolescent; using grep -F (substitute egrep and -E for the other).
Since it is clearly redirecting to the other command anyway, there shouldn’t be any side effects of just updating them to alias fgrep=‘grep -F --color=auto’ and alias egrep=‘grep -E --color=auto’.
It seems to be pulled from /usr/share/cachyos-fish-config/cachyos-config.fish.