Standard Deviation in Custom backtest metric

Found this: Trying to use stdev in a custom metric - I get no output from stdev but others work

Should I assume that standard deviation function doesn't work to calculate custom metrics?
If so, can I know why?