“upload_mimes” filter not working. Need to allow WOFF and WOFF2

I see a correct implementation at https://wordpress.stackexchange.com/a/323226/24756. Technically, you need to pass down the extension down to filter wp_check_filetype_and_ext as well.

And for WOFF/WOFF2, I’d suggest using the following format:

$mimes['woff']  = 'font/woff|application/font-woff|application/x-font-woff|application/octet-stream';
$mimes['woff2'] = 'font/woff2|application/octet-stream|font/x-woff2';

For .webp, it can simply be image/webp.

Hope it helps.