XAMPP, Microsoft PHP Drivers for SQL Server Support: cannot find the extensions

I’m having a problem setting up a server using XAMPP.
After setting up everything, PHP throws an error saying that Call to undefined function sqlsrv_connect(), after some more troubleshooting I found out that PHP couldn’t find the extensions. My PHP version is 8.0.3 (BTW when I ran php --version I got this:

PHP Warning:  PHP Startup: Unable to load dynamic library 'php_sqlsrv_83_ts_x64' (tried: C:xamppphpextphp_sqlsrv_83_ts_x64 (Impossibile trovare la procedura specificata), C:xamppphpextphp_php_sqlsrv_83_ts_x64.dll (Impossibile trovare il modulo specificato)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_83_ts_x64' (tried: C:xamppphpextphp_sqlsrv_83_ts_x64 (Impossibile trovare la procedura specificata), C:xamppphpextphp_php_sqlsrv_83_ts_x64.dll (Impossibile trovare il modulo specificato)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_83_ts_x64' (tried: C:xamppphpextphp_pdo_sqlsrv_83_ts_x64 (Impossibile trovare la procedura specificata), C:xamppphpextphp_php_pdo_sqlsrv_83_ts_x64.dll (Impossibile trovare il modulo specificato)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_83_ts_x64' (tried: C:xamppphpextphp_pdo_sqlsrv_83_ts_x64 (Impossibile trovare la procedura specificata), C:xamppphpextphp_php_pdo_sqlsrv_83_ts_x64.dll (Impossibile trovare il modulo specificato)) in Unknown on line 0
PHP 8.0.30 (cli) (built: Sep  1 2023 14:15:38) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies

The extensions are there:

As well as activated in the right php.ini file:

enter image description here

My extension dir:

extension_dir="C:xamppphpext"