% Source - https://tex.stackexchange.com/a/763407
% Posted by Explorer
% Retrieved 2026-06-04, License - CC BY-SA 4.0
\documentclass{article}
\usepackage{colortbl}
\usepackage{tabularray}
\UseTblrLibrary{amsmath}%<-
\begin{document}
% This breaks as soon as colortbl is loaded:
\begin{tblr}{hlines,vlines,colspec={ccc}}
${\begin{pmatrix}a\\b\end{pmatrix}}$ &
${\begin{pmatrix}c\\d\end{pmatrix}}$ &
${\begin{pmatrix}e\\f\end{pmatrix}}$
\end{tblr}
% This works fine (no nested array environment):
\begin{tblr}{hlines,vlines,colspec={ccc}}
$u_n$ & $v_n$ & $w_n$ \\
\end{tblr}
% This also works fine (native tabular):
\arrayrulecolor{red}
\begin{tabular}{ccc}
\hline
$\begin{pmatrix}a\\b\end{pmatrix}$ &
$\begin{pmatrix}c\\d\end{pmatrix}$ &
$\begin{pmatrix}e\\f\end{pmatrix}$ \\
\hline
\end{tabular}
\end{document}