Options in declarative pipeline

stage (‘Build’) {

		options {
        retry(2)
        timeout(time: 10, unit: 'MINUTES')
        
        }
        steps {
           //code
        }
        post {  
            success { 
             //code
            }
        }
    }

In the following jenkins stage… when the timeout is exceeded and when it retires, the timeout doesn’t work. Why does the timeout does not work in the retries?? Is there any other workaround but have it in the options block?