All packages are upgraded to the latest in my Function App. I went ahead and created a new simpler project that has less dependencies than my original project. This new project does a simple HTTP trigger that obtains some header information using this as before.
var token = req.Headers[tokenName];
This worked.
The only package that this new project has is the Microsoft.Net.Sdk.Functions (3.0.11) package. I found that one of its dependencies is Microsoft.Extensions.Primitives (2.1.6). In my original project that is having the issue, I am also using the Microsoft.Net.Sdk.Functions (3.0.11) package, however this package is showing that the Microsoft.Extensions.Primitives dependency is at version 5.0.0. This is because I have another package (Microsoft.Extensions.Caching.StackExchangeRedis 5.0.1) that requires the Microsoft.Extensions.Primitives to be at version 5.0.0. I believe this is my cause of the issue. I then rolled the Microsoft.Extensions.Caching.StackExchangeRedis package back from 5.0.1 to 3.1.13 which requires Microsoft.Extensions.Primitives 3.1.13 and then everything started to work.
@MayankBargali-MSFT ... thank you again for your help.