Direct to another folder with .htaccess file
The line you are using is telling the engine, redirect everything to the following URI. The reason for this is that you are using the pattern matching wildcard (.*). 

The parenthesis is used for creating groups, the dot is telling the engine that every character is accepted and the star symbol is telling the engine that it can be of unlimited length. By using the forward slash followed by another wildcard group, you are redirecting every URI request to the following URI "https://google.com/release/theme/5.0.1/$1/$2".

Instead of using 

RewriteRule ^(.*)/(.*) "https://google.com/release/theme/5.0.1/$1/$2" [R=302,L]


You should replace it with the following line

RewriteRule ^v5/(.*)$ https://google.com/release/theme/5.0.1/$1 [R=302,L]


Why append the 'v5' before the caret symbol (^)?
The caret symbol matches the start of a string. In our case, the string is the version. 

Source : https://www.searchenginepeople.com/blog/htaccess-redirect-rewrite-rules.html