As a first step, install the firmware package, as the firmware comes by default in the kernel, but is not enabled due to licensing issues:
$ ls -al /boot/kernel/if_rtw88.ko
-r--r--r-- 1 root wheel 1185856 26 Dec. 04:37 /boot/kernel/if_rtw88.ko
Then install the driver:
pkg install wifi-firmware-rtw88-kmod
From Realtek RTW88 FreeBSD wiki "Currently known issue":
Does not work on machines with more than 4GB of physical memory. Likely busdma+LinuxKPI problem to be investigated. D34715 has a change to gather data (which is in freebsd/main by now).
You need to boot with compat.linuxkpi.skb.mem_limit=1 in loader.conf to limit DMA to 32bit (announcement on freebsd-wireless for more info).
/boot/loader.conf:
compat.linuxkpi.skb.mem_limit=1
reboot system, see if the driver has attached to the device, if not, try:
kldload if_rtw88
Source: https://forums.freebsd.org/threads/driver-rtw88-wifi-rtl8821ce.93184/