I’ve just created a PR for Bud to prevent this error this morning! In the meantime you can add this to your .stylelintrc file in the root of your theme.
"rules": {
"function-no-unknown": [
true,
{
"ignoreFunctions": [
"theme"
]
}
]
}