Implement matched pattern extract for fn headers