Why might dark-light-choose() not work?

It is a SCSS requirement when using CSS custom properties. More details here: Sass: Property Declarations