"We are the best of friends" = "We are extremely good friends."
"the best of " is an idiom of limited use; it's related to personal relationships.
"the best of friends", "the best of buddies", "the best of neighbors".
There are other uses of "best" as a noun. Here's just one.
He did his best...