Type dxdiag into the searchbar and run the program, this one:
Once opened, the BIOS version is about half way down:
This is from a different laptop, but on the Asus TUF gaming F15 it will be one of the following:
Select the correct BIOS
Then select the correct windows operating system:
Then download the Realtek LAN driver unde3r networking:
Then transfer the file onto a USB drive and install it on the laptop, restart it and presto, the WIFI will work as it should.
Hope this helps