You can achieve this in Polars using .list.eval() along with .str.len_chars() to determine the longest string in each list.
.list.eval()
.str.len_chars()