The objective of this tutorial is to install VirtualBox on Fedora Linux. VirtualBox is a free and open source hosted hypervisor for x86 virtualization developed and maintained by the Oracle Corporation. VirtualBox is a great way to install a guest operating system on your computer, if you either want to try a different operating system or just maintain a separate environment from your host system. You will learn how to install VirtualBox via both command line in this tutorial.
This is a companion discussion topic for the original entry at https://linuxconfig.org/virtualbox-installation-on-fedora-linux
Virtualbox installation on Fedora Linux - Linux Tutorials - Learn Linux Configuration
The virtualbox repo you used there have some issue and its not working.
By the way this will work -
name=Fedora $releasever - $basearch - VirtualBox
PLEASE do not forget to remove brackets in baseurl and gpgkey.
As a new user I am unable to put links in the replies.