It looks like the latexindent script from print/texlive-base is missing some runtime Perl modules:
Can't locate YAML/Tiny.pm in @INC (you may need to install the YAML::Tiny module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32) at /usr/local/bin/latexindent line 39.
BEGIN failed--compilation aborted at /usr/local/bin/latexindent line 39.
It looks like it is missing at least those two dependencies:
After they are installed, the script is able to do some work. I am not sure if those are all the needed dependencies.