You are most likely missing the / to separate the file name from the folder.
This should work:
torch.save(net.state_dict(), dir_checkpoint + f'/CP_epoch{epoch + 1}.pth')

The current checkpoint should be stored in the current working directory using the dir_checkpoint as part of its name.
PS: You can post code by wrapping it into three backticks ```, which would make debugging easier.