I have a free Twitter account, created a project, created an app. When I extract data from the twitter using APIs I get forbidden: You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level.
I tried to re-created one another Twitter account, and did it again, but the problem still happened. I search web and there are many same problems for reading twitter text in APIs recently. However, no one solved this error until now.
/2/tweets/search/recent is not available in the free plan. See V2 endpoints available on the free plan here: https://developer.twitter.com/en/portal/products/free For searching recent tweets, you will need to upgrade to basic plan, which is currently 100$/month
Also the pro plan has the permission for FULL-ARCHIVE SEARCH which the basic plan doesn't support
Here is a simple python code to immediately check if you are getting tweets after upgrading to basic plan.