Forbidden You don’t have permission to access this resource. Apache/2.4.41 (Ubuntu) Server [closed]

I found out that the issue was on .htaccess file. I restored the file to the original wordpress config and it work fine again

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Here is the wordpress htaccess config wordpress htaccess