I'd like to define a math environment that behaves exactly like flalign*, except (1) the font is all red, and (2) the math is all rendered as if it were wrapped in \mathsf
I've tried:
\documentclass{article}
\usepackage{xcolor}
\usepackage{amsmath}
\begin{document}
\newenvironment{myenv}
{\color{red}\begin{flalign}
}
{\end{flalign}}
\begin{myenv}
Foo
\end{myenv}
Bar
Baz
\end{document}
But this turns everything red after the environment, not just within it. And I don't even know how to set the font for the whole environment.
Is this possible?

\NewDocumentEnvironmentandb-type arg in this answer to the question I linked above – mbert Jan 07 '23 at 17:13