The following instructions use Alma Linux as an example but could be used as a guide for any Red Hat-based Linux distribution.
Download the AlmaLinux 8 WSL image.
Extract the .tar.gz file (for example, C:\wsl\almalinux8).
Open PowerShell and navigate to the extracted directory.
Register the distribution:
wsl --import AlmaLinux8 C:\wsl\almalinux8\<path_to_almalinux_rootfs.tar.gz>
Set the default user:
almalinux8 config --default-user <username>
Set the distro version to WSL 2:
wsl --set-version AlmaLinux8 2