Por algum motivo ele não reconhecia o @import e o arquivo theming mudou, deve ser por conta da versão 13 talvez, porem consegui desse modo ter o mesmo resultado
@use '@angular/material' as mat;
@include mat.core();
$custom-app-primary: mat.define-palette(mat.$blue-palette);
$custom-app-secondaty: mat.define-palette(mat.$indigo-palette, A200, A400, 700);
$custom-app-warn: mat.define-palette(mat.$red-palette);
$custom-theme: mat.define-light-theme((
color: (
primary: $custom-app-primary,
accent: $custom-app-secondaty,
warn: $custom-app-secondaty,
)
));
@include mat.all-component-themes($custom-theme);
@include mat.core-theme($custom-theme);