Scanning with HP printers on Rocky Linux

I found that my HP Envy 4500 printer will print fine, but Document Scanner did not detect the printer as a scanner.
It took me some time to figure this out, so I thought I would share the solution to help anyone that may come across the same issue:

Do:
sane-find-scanner
and this should show your printer model

Do:
scanimage -L
and this shows:
No scanners were identified.

Do:
dnf search hplip

This will show, in search results:

hplip
hplip-common
hplip-gui

All 3 need to be installed. The first 2 were installed by default.

I installed hplip-gui:
sudo dnf install hplip-gui

This installed a fair few packages, including qt5, and installs:
HPLIP Graphical Tools
which can be accessed thru Activities / Show Applications

Follow the instructions to detect your scanner/printer.

Do:
scanimage -L
again and this now shows your printer model.