[SOLVED]Http api v2 set provider stage as !Sub doesnt work

Hello my friends, im with a doubt if theres a better way to do it, im want to set on a httpv2 path my stage set in provider but it doesnt working an say at console that “Warning: Invalid configuration encountered at ‘functions.api.events.0.httpApi.path’: must be string”

Follow the code (the code shows the truth xD)

PS: at the output section it works fine

    Description: "Endpoint da API HTTP"
    Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/{self:provider.stage}/"

Oops i found xD i’m writing wrong doesnt need a !Sub shame on me

  - httpApi:
      path: /${self:provider.stage}
      method: post