ModelCheckpoint filename with named formatting options

How can I add the loss to the file name of the ModelCheckpoint callback if the parameter is logged as “val/loss” for Neptune? Something like filename="model-{epoch:04d}-{val/loss:.5f}" doesn’t work.