Wifi Adapter not Detected

I have encountered a problem where my Alfa card used to work in my Kali VM in VMWare Workstation, then after some months of not using it and reconnecting it, wireless adapter is no longer being detected. Here are the trouble shooting steps I went through to fix it.

When issuing ip link and iwconfig command, the adapter is not being detected.
When issuing lsusb command, the hardware is detected by the VM.

Install updates and then install the Realtek driver.

apt update
apt upgrade
apt install realtek-rtl88xxau-dkms

Sample screenshot for installation in progress.
Sample terminal output for successful installation.

Reboot, and issue ip link command to check if wireless adapter is now present.

Output of ip link command.
Sample output of iwconfig wlan0 command.