Add this in .clang-format (see here, starting clang 13) :
.clang-format
EmptyLineAfterAccessModifier: Always
It will do for private, protected and public.
private
protected
public
Just for info there is also EmptyLineBeforeAccessModifier
EmptyLineBeforeAccessModifier