What it flags
A nonempty static<html lang="..."> value with malformed BCP 47 syntax. Private-use and grandfathered tags are accepted.
Values replaced before the browser reads the page are left alone: build-time placeholders such as %lang%, %paraglide.lang%, %VITE_APP_LANG%, __LANG__ and $LANG, and template expressions such as {{ locale }}, ${locale} and <%= locale %>. Any value holding %, $, {, }, [, ], <, >, #, @ or ., or starting with __, counts as one. A malformed tag such as en_US or en us is still reported.
How to review or fix
Set the language tag for the actual page content, for examplelang="en-US".